Skip to content

Commit 4bd9a58

Browse files
committed
reword and constness
1 parent 6501bc2 commit 4bd9a58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/design/datacontracts/contract-descriptor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct DotNetRuntimeContractDescriptor
2525
uint32_t aux_data_count;
2626
uint32_t descriptor_size;
2727
uint32_t reserved;
28-
char *descriptor;
28+
const char *descriptor;
2929
uint64_t *aux_data;
3030
};
3131

@@ -51,7 +51,7 @@ If `ptrSize` is 0, the architecture is 64-bit. If it is 1, the architecture is
5151
reserved bits should be written as zero. Diagnostic tooling may ignore non-zero reserved bits.
5252

5353
If `isList` is 1, the descriptor is actually a `DotNetRuntimeContractDescriptorList` (that is, it
54-
has a `next_runtime` field at the end. See "Unix symbol", below.) If `isList` is 0, the descriptor
54+
has a `next_runtime` field at the end. See "Non-Windows", below.) If `isList` is 0, the descriptor
5555
does not have a `next_runtime` field.
5656

5757
The `descriptor` is a pointer to a json string described in [data descriptor physical layout](./data_descriptor.md#Physical_JSON_descriptor). The total length (including nul terminator character) is given by `descriptor_size`.
@@ -90,7 +90,7 @@ a JSON integer constant.
9090
{
9191
"FEATURE_COMINTEROP": 0,
9292
"s_pThreadStore": [ 0 ] // indirect from aux data offset 0
93-
}
93+
},
9494
"contracts": {"Thread": 1,"GCHandle": 1, "ThreadStore": 1}
9595
}
9696
```
@@ -116,7 +116,7 @@ on platforms where such symbols typically have an `_` prepended, this symbol sho
116116
`_DotNetRuntimeContractDescriptor`) with a null initial value. As each .NET runtime in the process starts
117117
up, it shall atomically store a pointer to a `struct DotNetRuntimeContractDescriptorList` in
118118
`DotNetRuntimeContractDescriptor` where `next_runtime` points to the previous value of
119-
`DotNetRuntimeContractDescriptor` as if by the following C code:
119+
`DotNetRuntimeContractDescriptor` as by the C code below.
120120

121121
The `runtime_name` is an arbitrary identifier to aid diagnostic tooling in identifying the current
122122
runtime. (For example hosted runtimes may want to embed the name of the host; a desktop runtime may

0 commit comments

Comments
 (0)