--- old/src/share/vm/gc/g1/heapRegionManager.cpp 2017-03-21 16:20:28.378915888 -0400 +++ new/src/share/vm/gc/g1/heapRegionManager.cpp 2017-03-21 16:20:27.166845865 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -508,3 +508,11 @@ uint old_val = Atomic::cmpxchg(Claimed, &_claims[region_index], Unclaimed); return old_val == Unclaimed; } + +void G1ParallelizeByRegionsTask::all_heap_regions_work(HeapRegionClosure* cl, + uint worker_id, + bool concurrent) { + G1CollectedHeap* g1h = G1CollectedHeap::heap(); + g1h->heap_region_par_iterate(cl, worker_id, &_hrclaimer, concurrent); +} +