Skip to content

Commit 3a07362

Browse files
TylerMSFTTylerMSFT
authored andcommitted
typo
1 parent 7824663 commit 3a07362

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/build/reference/volatile.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
description: "Learn more about: /volatilemetadata"
3-
title: "/volatilemetadata (Generate metadata on volatile memory accesses)"
2+
description: "Learn more about: /volatileMetadata"
3+
title: "/volatileMetadata (Generate metadata on volatile memory accesses)"
44
ms.date: 5/29/2024
5-
f1_keywords: ["/volatilemetadata"]
6-
helpviewer_keywords: ["/volatilemetadata", "-volatilemetadata compiler option", "/volatilemetadata compiler option", "volatilemetadata"]
5+
f1_keywords: ["/volatileMetadata"]
6+
helpviewer_keywords: ["/volatileMetadata", "-volatileMetadata compiler option", "/volatileMetadata compiler option", "volatileMetadata"]
77
---
8-
# `/volatilemetadata` (Generate metadata on volatile memory accesses)
8+
# `/volatileMetadata` (Generate metadata on volatile memory accesses)
99

1010
Generate metadata for volatile memory accesses to improve performance when running x64 code on ARM64.
1111

1212
## Syntax
1313

1414
```cpp
15-
/volatilemetdata[-]
15+
/volatileMetadata[-]
1616
```
1717

1818
## Arguments
@@ -24,7 +24,7 @@ Turns off `/volatileMetadata`. This may result in worse performance when your co
2424

2525
Starting with Visual Studio 2019 16.10, `/volatileMetadata` is on by default when generating x64 code. It improves the emulation performance of x64 code on ARM64 by generating metadata that identifies volatile memory addresses. An emulator can use this metadata to improve performance by not using acquire/release semantics on those accesses it knows aren't volatile. Without this metadata, the emulator assumes that all addresses are volatile and uses acquire and release semantics.
2626

27-
One side effect of `/volatileMetadata` is you may see `npad` macros in the generated code. This macro expands to a specified number of `NOP` instructions that create an address to associate with a memory barrier. That address is then recorded in the metadata to indicate that acquire/release semantics should be used to access it.
27+
One side effect of `/volatileMetadata` is you may see `npad` macros used in the generated code. This macro expands to a specified number of `NOP` instructions that create an address to associate with a memory barrier. That address is then recorded in the metadata to indicate that acquire/release semantics should be used to access it.
2828

2929
`/volatileMetadata` is ignored when targeting x86.
3030

0 commit comments

Comments
 (0)