comparison src/share/vm/gc_implementation/g1/g1Allocator.hpp @ 20417:d35872270666

8057658: Enable G1 FullGC extensions Summary: Refactored the G1 FullGC code to enable it to be extended. Reviewed-by: mgerdin, brutisso
author sjohanss
date Tue, 09 Sep 2014 00:05:25 +0200
parents 227a9e5e4b4a
children
comparison
equal deleted inserted replaced
20416:99f0593d8c9f 20417:d35872270666
83 _summary_bytes_used -= bytes; 83 _summary_bytes_used -= bytes;
84 } 84 }
85 85
86 void set_used(size_t bytes) { 86 void set_used(size_t bytes) {
87 _summary_bytes_used = bytes; 87 _summary_bytes_used = bytes;
88 }
89
90 virtual HeapRegion* new_heap_region(uint hrs_index,
91 G1BlockOffsetSharedArray* sharedOffsetArray,
92 MemRegion mr) {
93 return new HeapRegion(hrs_index, sharedOffsetArray, mr);
88 } 94 }
89 }; 95 };
90 96
91 // The default allocator for G1. 97 // The default allocator for G1.
92 class G1DefaultAllocator : public G1Allocator { 98 class G1DefaultAllocator : public G1Allocator {