From 83edffa608d998a118d1d12f62d73be40a8982bc Mon Sep 17 00:00:00 2001 From: Alex Menkov Date: Mon, 7 Aug 2023 18:27:33 +0000 Subject: [PATCH] 8309663: test fails "assert(check_alignment(result)) failed: address not aligned: 0x00000008baadbabe" Reviewed-by: sspitsyn, eosterlund --- src/hotspot/share/prims/jvmtiTagMap.cpp | 5 ++++- test/hotspot/jtreg/ProblemList-zgc.txt | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/prims/jvmtiTagMap.cpp b/src/hotspot/share/prims/jvmtiTagMap.cpp index d98a725c7aa..77bbbbfa77c 100644 --- a/src/hotspot/share/prims/jvmtiTagMap.cpp +++ b/src/hotspot/share/prims/jvmtiTagMap.cpp @@ -2320,7 +2320,10 @@ bool StackRefCollector::do_frame(vframe* vf) { // Follow oops from compiled nmethod. if (jvf->cb() != nullptr && jvf->cb()->is_nmethod()) { _blk->set_context(_thread_tag, _tid, _depth, method); - jvf->cb()->as_nmethod()->oops_do(_blk); + // Need to apply load barriers for unmounted vthreads. + nmethod* nm = jvf->cb()->as_nmethod(); + nm->run_nmethod_entry_barrier(); + nm->oops_do(_blk); if (_blk->stopped()) { return false; } diff --git a/test/hotspot/jtreg/ProblemList-zgc.txt b/test/hotspot/jtreg/ProblemList-zgc.txt index 49b7486cdc0..d9863b4690b 100644 --- a/test/hotspot/jtreg/ProblemList-zgc.txt +++ b/test/hotspot/jtreg/ProblemList-zgc.txt @@ -45,4 +45,3 @@ vmTestbase/gc/gctests/MemoryEaterMT/MemoryEaterMT.java 8289582 windows- vmTestbase/nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded002/TestDescription.java 8298302 generic-all vmTestbase/nsk/sysdict/vm/stress/chain/chain007/chain007.java 8298991 linux-x64 -serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default 8309663 linux-x64