Skip to content

Commit 66a1939

Browse files
authored
Merge pull request #21335 from hangshao0/0.51
(0.51) Unprotect header when modifying extraStartupHints
2 parents 1e89c7e + 81acf2e commit 66a1939

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/shared_common/CompositeCache.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6809,6 +6809,8 @@ SH_CompositeCacheImpl::setExtraStartupHints(J9VMThread* currentThread, U_32 val)
68096809
return;
68106810
}
68116811
Trc_SHR_Assert_True(hasWriteMutex(currentThread));
6812+
unprotectHeaderReadWriteArea(currentThread, false);
68126813
_theca->extraStartupHints = val;
6814+
protectHeaderReadWriteArea(currentThread, false);
68136815
Trc_SHR_CC_setExtraStartupHints_Event(currentThread, val);
68146816
}

0 commit comments

Comments
 (0)