8210045: Allow using a subset of worker threads even when UseDynamicNumberOfGCThreads is not set
authorpliden
Wed, 29 Aug 2018 08:00:00 +0200
changeset 51560 8896112226cb
parent 51559 57f1bf06742e
child 51561 67092c6be8e1
8210045: Allow using a subset of worker threads even when UseDynamicNumberOfGCThreads is not set Reviewed-by: eosterlund, kbarrett
src/hotspot/share/gc/shared/workgroup.hpp
src/hotspot/share/gc/z/zArguments.cpp
--- a/src/hotspot/share/gc/shared/workgroup.hpp	Tue Aug 28 21:25:37 2018 -0700
+++ b/src/hotspot/share/gc/shared/workgroup.hpp	Wed Aug 29 08:00:00 2018 +0200
@@ -154,8 +154,6 @@
   virtual uint active_workers() const {
     assert(_active_workers <= _total_workers,
            "_active_workers: %u > _total_workers: %u", _active_workers, _total_workers);
-    assert(UseDynamicNumberOfGCThreads || _active_workers == _total_workers,
-           "Unless dynamic should use total workers");
     return _active_workers;
   }
 
--- a/src/hotspot/share/gc/z/zArguments.cpp	Tue Aug 28 21:25:37 2018 -0700
+++ b/src/hotspot/share/gc/z/zArguments.cpp	Wed Aug 29 08:00:00 2018 +0200
@@ -76,9 +76,6 @@
   }
 #endif
 
-  // To avoid asserts in set_active_workers()
-  FLAG_SET_DEFAULT(UseDynamicNumberOfGCThreads, true);
-
   // CompressedOops/UseCompressedClassPointers not supported
   FLAG_SET_DEFAULT(UseCompressedOops, false);
   FLAG_SET_DEFAULT(UseCompressedClassPointers, false);