8131645: [ARM64] crash on Cavium when using G1
Add a fence when creating the CodeRootSetTable so the readers do not see invalid memory. Reviewed-by: aph, tschatzl
This commit is contained in:
parent
7f7b300f89
commit
d3653c4ca3
@ -197,7 +197,9 @@ CodeRootSetTable* G1CodeRootSet::load_acquire_table() {
|
||||
}
|
||||
|
||||
void G1CodeRootSet::allocate_small_table() {
|
||||
_table = new CodeRootSetTable(SmallSize);
|
||||
CodeRootSetTable* temp = new CodeRootSetTable(SmallSize);
|
||||
|
||||
OrderAccess::release_store_ptr(&_table, temp);
|
||||
}
|
||||
|
||||
void CodeRootSetTable::purge_list_append(CodeRootSetTable* table) {
|
||||
|
Loading…
Reference in New Issue
Block a user