diff options
author | Vladimir Sadov <vsadov@microsoft.com> | 2019-06-20 19:54:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 19:54:34 -0700 |
commit | f77a8bee633f8fae4b3ee85afff619e11226d79b (patch) | |
tree | 76a73904f1fdb385e2c5ba8b9cc51a93a428c284 /src/gc | |
parent | 61dfc51ae30a9a2dbdb637fa200af85ea0435dc5 (diff) | |
download | coreclr-f77a8bee633f8fae4b3ee85afff619e11226d79b.tar.gz coreclr-f77a8bee633f8fae4b3ee85afff619e11226d79b.tar.bz2 coreclr-f77a8bee633f8fae4b3ee85afff619e11226d79b.zip |
ensure process-wide fence when updating GC write barrier on ARM64 (#25130)
* ensure process-wide fences when updating GC write barrier on ARM64
Diffstat (limited to 'src/gc')
-rw-r--r-- | src/gc/sample/GCSample.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc/sample/GCSample.cpp b/src/gc/sample/GCSample.cpp index 4e228509dc..d7db90d4f9 100644 --- a/src/gc/sample/GCSample.cpp +++ b/src/gc/sample/GCSample.cpp @@ -95,7 +95,7 @@ inline void ErectWriteBarrier(Object ** dst, Object * ref) return; // volatile is used here to prevent fetch of g_card_table from being reordered - // with g_lowest/highest_address check above. See comment in code:gc_heap::grow_brick_card_tables. + // with g_lowest/highest_address check above. See comments in StompWriteBarrier uint8_t* pCardByte = (uint8_t *)*(volatile uint8_t **)(&g_gc_card_table) + card_byte((uint8_t *)dst); if(*pCardByte != 0xFF) *pCardByte = 0xFF; |