8211129: compiler/whitebox/ForceNMethodSweepTest.java fails after JDK-8132849
authorrkennke
Mon, 01 Oct 2018 20:23:56 +0200
changeset 51974 c5b97602cd4b
parent 51973 2f1698b6db15
child 51975 94b9b7a09001
8211129: compiler/whitebox/ForceNMethodSweepTest.java fails after JDK-8132849 Reviewed-by: eosterlund, thartmann
src/hotspot/share/runtime/sweeper.cpp
test/hotspot/jtreg/ProblemList.txt
--- a/src/hotspot/share/runtime/sweeper.cpp	Mon Oct 01 19:08:14 2018 +0200
+++ b/src/hotspot/share/runtime/sweeper.cpp	Mon Oct 01 20:23:56 2018 +0200
@@ -335,7 +335,6 @@
       VM_MarkActiveNMethods op;
       VMThread::execute(&op);
     }
-    _should_sweep = true;
   }
 }
 
@@ -452,7 +451,7 @@
   // allocations go to the non-profiled heap and we must be make sure that there is
   // enough space.
   double free_percent = 1 / CodeCache::reverse_free_ratio(CodeBlobType::MethodNonProfiled) * 100;
-  if (free_percent <= StartAggressiveSweepingAt) {
+  if (free_percent <= StartAggressiveSweepingAt || forced || _should_sweep) {
     do_stack_scanning();
   }
 
--- a/test/hotspot/jtreg/ProblemList.txt	Mon Oct 01 19:08:14 2018 +0200
+++ b/test/hotspot/jtreg/ProblemList.txt	Mon Oct 01 20:23:56 2018 +0200
@@ -59,8 +59,6 @@
 
 compiler/cpuflags/TestAESIntrinsicsOnSupportedConfig.java 8190680 generic-all
 
-compiler/whitebox/ForceNMethodSweepTest.java 8211129 generic-all
-
 #############################################################################
 
 # :hotspot_gc