OpenJDK / loom / loom
changeset 28375:3eb2963297fb
8068018: Clean up friends of G1CollectedHeap
Summary: Remove unnecessary friend class declaration in the G1CollectedHeap class.
Reviewed-by: jwilhelm, jmasa
author | tschatzl |
---|---|
date | Tue, 23 Dec 2014 15:48:32 +0100 |
parents | 57791914628c |
children | 0845d2f43ff4 |
files | hotspot/src/share/vm/gc_implementation/g1/g1Allocator.cpp hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp |
diffstat | 2 files changed, 2 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/src/share/vm/gc_implementation/g1/g1Allocator.cpp Thu Dec 18 13:26:37 2014 -0500 +++ b/hotspot/src/share/vm/gc_implementation/g1/g1Allocator.cpp Tue Dec 23 15:48:32 2014 +0100 @@ -99,8 +99,8 @@ } if (ResizePLAB) { - _g1h->_survivor_plab_stats.adjust_desired_plab_sz(no_of_gc_workers); - _g1h->_old_plab_stats.adjust_desired_plab_sz(no_of_gc_workers); + _g1h->alloc_buffer_stats(InCSetState::Young)->adjust_desired_plab_sz(no_of_gc_workers); + _g1h->alloc_buffer_stats(InCSetState::Old)->adjust_desired_plab_sz(no_of_gc_workers); } }
--- a/hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Thu Dec 18 13:26:37 2014 -0500 +++ b/hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Tue Dec 23 15:48:32 2014 +0100 @@ -186,32 +186,14 @@ friend class SurvivorGCAllocRegion; friend class OldGCAllocRegion; friend class G1Allocator; - friend class G1DefaultAllocator; - friend class G1ResManAllocator; // Closures used in implementation. - template <G1Barrier barrier, G1Mark do_mark_object> - friend class G1ParCopyClosure; - friend class G1IsAliveClosure; - friend class G1EvacuateFollowersClosure; friend class G1ParScanThreadState; - friend class G1ParScanClosureSuper; - friend class G1ParEvacuateFollowersClosure; friend class G1ParTask; friend class G1ParGCAllocator; - friend class G1DefaultParGCAllocator; - friend class G1FreeGarbageRegionClosure; - friend class RefineCardTableEntryClosure; friend class G1PrepareCompactClosure; - friend class RegionSorter; - friend class RegionResetter; - friend class CountRCClosure; - friend class EvacPopObjClosure; - friend class G1ParCleanupCTTask; - friend class G1FreeHumongousRegionClosure; // Other related classes. - friend class G1MarkSweep; friend class HeapRegionClaimer; // Testing classes.