Mercurial > hg > graal-jvmci-8
diff 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 | c132be0fb74d |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1Allocator.hpp Mon Sep 08 14:13:01 2014 +0000 +++ b/src/share/vm/gc_implementation/g1/g1Allocator.hpp Tue Sep 09 00:05:25 2014 +0200 @@ -86,6 +86,12 @@ void set_used(size_t bytes) { _summary_bytes_used = bytes; } + + virtual HeapRegion* new_heap_region(uint hrs_index, + G1BlockOffsetSharedArray* sharedOffsetArray, + MemRegion mr) { + return new HeapRegion(hrs_index, sharedOffsetArray, mr); + } }; // The default allocator for G1.