diff --git a/src/hotspot/share/gc/shared/workgroup.hpp b/src/hotspot/share/gc/shared/workgroup.hpp index c1f21f6b6a5..ec208eb67e8 100644 --- a/src/hotspot/share/gc/shared/workgroup.hpp +++ b/src/hotspot/share/gc/shared/workgroup.hpp @@ -154,8 +154,6 @@ class AbstractWorkGang : public CHeapObj { 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; } diff --git a/src/hotspot/share/gc/z/zArguments.cpp b/src/hotspot/share/gc/z/zArguments.cpp index 0e2df88c4a1..7ab150c079d 100644 --- a/src/hotspot/share/gc/z/zArguments.cpp +++ b/src/hotspot/share/gc/z/zArguments.cpp @@ -76,9 +76,6 @@ void ZArguments::initialize() { } #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);