diff --git a/src/hotspot/share/gc/shared/parallelCleaning.cpp b/src/hotspot/share/gc/shared/parallelCleaning.cpp index 644ad20..725bfbc 100644 --- a/src/hotspot/share/gc/shared/parallelCleaning.cpp +++ b/src/hotspot/share/gc/shared/parallelCleaning.cpp @@ -74,7 +74,7 @@ CodeCacheUnloadingTask::CodeCacheUnloadingTask(uint num_workers, BoolObjectClosu _first_nmethod(NULL), _claimed_nmethod(NULL) { // Get first alive nmethod - CompiledMethodIterator iter(true /* only_alive */, false /* only_not_unloading */); + CompiledMethodIterator iter(CompiledMethodIterator::only_alive); if(iter.next()) { _first_nmethod = iter.method(); } @@ -91,13 +91,13 @@ CodeCacheUnloadingTask::~CodeCacheUnloadingTask() { void CodeCacheUnloadingTask::claim_nmethods(CompiledMethod** claimed_nmethods, int *num_claimed_nmethods) { CompiledMethod* first; - CompiledMethodIterator last(true /* only_alive */, false /* only_not_unloading */); + CompiledMethodIterator last(CompiledMethodIterator::only_alive); do { *num_claimed_nmethods = 0; first = _claimed_nmethod; - last = CompiledMethodIterator(true /* only_alive */, false /* only_not_unloading */, first); + last = CompiledMethodIterator(CompiledMethodIterator::only_alive, first); if (first != NULL) {