We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330adc0 commit da9cc5cCopy full SHA for da9cc5c
src/hotspot/share/gc/g1/g1YoungGCPostEvacuateTasks.cpp
@@ -670,7 +670,9 @@ G1PostEvacuateCollectionSetCleanupTask2::G1PostEvacuateCollectionSetCleanupTask2
670
#if COMPILER2_OR_JVMCI
671
add_serial_task(new UpdateDerivedPointersTask());
672
#endif
673
- add_serial_task(new EagerlyReclaimHumongousObjectsTask());
+ if (G1CollectedHeap::heap()->has_humongous_reclaim_candidates()) {
674
+ add_serial_task(new EagerlyReclaimHumongousObjectsTask());
675
+ }
676
677
if (evac_failure_regions->evacuation_failed()) {
678
add_parallel_task(new RestorePreservedMarksTask(per_thread_states->preserved_marks_set()));
0 commit comments