8210045: Allow using a subset of worker threads even when UseDynamicNumberOfGCThreads is not set

Reviewed-by: eosterlund, kbarrett
This commit is contained in:
Per Lidén 2018-08-29 08:00:00 +02:00
parent 3de7598a3f
commit 16263ca90c
2 changed files with 0 additions and 5 deletions

View File

@ -154,8 +154,6 @@ class AbstractWorkGang : public CHeapObj<mtInternal> {
virtual uint active_workers() const { virtual uint active_workers() const {
assert(_active_workers <= _total_workers, assert(_active_workers <= _total_workers,
"_active_workers: %u > _total_workers: %u", _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; return _active_workers;
} }

View File

@ -76,9 +76,6 @@ void ZArguments::initialize() {
} }
#endif #endif
// To avoid asserts in set_active_workers()
FLAG_SET_DEFAULT(UseDynamicNumberOfGCThreads, true);
// CompressedOops/UseCompressedClassPointers not supported // CompressedOops/UseCompressedClassPointers not supported
FLAG_SET_DEFAULT(UseCompressedOops, false); FLAG_SET_DEFAULT(UseCompressedOops, false);
FLAG_SET_DEFAULT(UseCompressedClassPointers, false); FLAG_SET_DEFAULT(UseCompressedClassPointers, false);