src/share/vm/gc/g1/heapRegionManager.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2001, 2016, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 506,510 **** --- 506,518 ---- bool HeapRegionClaimer::claim_region(uint region_index) { assert(region_index < _n_regions, "Invalid index."); 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); + } +