changeset 51974:c5b97602cd4b

8211129: compiler/whitebox/ForceNMethodSweepTest.java fails after JDK-8132849 Reviewed-by: eosterlund, thartmann
author rkennke
date Mon, 01 Oct 2018 20:23:56 +0200
parents 2f1698b6db15
children 94b9b7a09001
files src/hotspot/share/runtime/sweeper.cpp test/hotspot/jtreg/ProblemList.txt
diffstat 2 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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