< prev index next >
src/hotspot/share/gc/g1/g1CollectedHeap.cpp
Print this page
@@ -3714,15 +3714,15 @@
G1PrepareRegionsClosure cl(_g1h, this);
_g1h->heap_region_par_iterate_from_worker_offset(&cl, &_claimer, worker_id);
}
void add_humongous_candidates(size_t candidates) {
- Atomic::add(candidates, &_humongous_candidates);
+ Atomic::add(&_humongous_candidates, candidates);
}
void add_humongous_total(size_t total) {
- Atomic::add(total, &_humongous_total);
+ Atomic::add(&_humongous_total, total);
}
size_t humongous_candidates() {
return _humongous_candidates;
}
< prev index next >