8316392: compiler/interpreter/TestVerifyStackAfterDeopt.java failed with SIGBUS in PcDescContainer::find_pc_desc_internal

Reviewed-by: thartmann, kvn
This commit is contained in:
Tobias Holenstein 2023-11-14 16:17:34 +00:00
parent a75b6e569f
commit 58af9aeeb0
2 changed files with 2 additions and 6 deletions
src/hotspot/share/code
test/hotspot/jtreg

@ -394,6 +394,7 @@ PcDesc* PcDescCache::find_pc_desc(int pc_offset, bool approximate) {
}
void PcDescCache::add_pc_desc(PcDesc* pc_desc) {
MACOS_AARCH64_ONLY(ThreadWXEnable wx(WXWrite, Thread::current());)
NOT_PRODUCT(++pc_nmethod_stats.pc_desc_adds);
// Update the LRU cache by shifting pc_desc forward.
for (int i = 0; i < cache_size; i++) {
@ -2706,9 +2707,6 @@ void nmethod::decode2(outputStream* ost) const {
AbstractDisassembler::show_block_comment());
#endif
// Decoding an nmethod can write to a PcDescCache (see PcDescCache::add_pc_desc)
MACOS_AARCH64_ONLY(ThreadWXEnable wx(WXWrite, Thread::current());)
st->cr();
this->print(st);
st->cr();

@ -45,6 +45,4 @@ vmTestbase/vm/mlvm/indy/func/jvmti/redefineClassInTarget/TestDescription.java 83
vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001/TestDescription.java 8299493 macosx-x64
gc/arguments/TestNewSizeFlags.java 8299116 macosx-aarch64
compiler/interpreter/TestVerifyStackAfterDeopt.java 8316392 macosx-aarch64
gc/cslocker/TestCSLocker.java 8310480 linux-x64
gc/cslocker/TestCSLocker.java 8310480 linux-x64