< prev index next >

src/share/vm/gc/g1/g1Allocator.hpp

Print this page
rev 8849 : imported patch 8003237-no-wait-for-free-list
rev 8850 : imported patch jon-fast-evac-failure
rev 8851 : imported patch bengt-jon-more-naming
rev 8853 : imported patch mikael-erik-suggestions
rev 8854 : imported patch 8073013-add-detailed-information-about-plab-memory-usage
rev 8855 : imported patch jon-review-statistics
rev 8866 : imported patch 8067339-PLAB-reallocation-might-result-in-failure-to-allocate
rev 8867 : imported patch bengt-refactoring
rev 8870 : [mq]: tom-review

*** 55,68 **** // Accessors to the allocation regions. virtual SurvivorGCAllocRegion* survivor_gc_alloc_region(AllocationContext_t context) = 0; virtual OldGCAllocRegion* old_gc_alloc_region(AllocationContext_t context) = 0; // Allocation attempt during GC for a survivor object / PLAB. ! inline HeapWord* survivor_attempt_allocation(size_t word_size, AllocationContext_t context); // Allocation attempt during GC for an old object / PLAB. ! inline HeapWord* old_attempt_allocation(size_t word_size, AllocationContext_t context); public: G1Allocator(G1CollectedHeap* heap) : _g1h(heap), _survivor_is_full(false), _old_is_full(false) { } virtual ~G1Allocator() { } --- 55,72 ---- // Accessors to the allocation regions. virtual SurvivorGCAllocRegion* survivor_gc_alloc_region(AllocationContext_t context) = 0; virtual OldGCAllocRegion* old_gc_alloc_region(AllocationContext_t context) = 0; // Allocation attempt during GC for a survivor object / PLAB. ! inline HeapWord* survivor_attempt_allocation(size_t min_word_size, ! size_t desired_word_size, ! size_t* actual_word_size, AllocationContext_t context); // Allocation attempt during GC for an old object / PLAB. ! inline HeapWord* old_attempt_allocation(size_t min_word_size, ! size_t desired_word_size, ! size_t* actual_word_size, AllocationContext_t context); public: G1Allocator(G1CollectedHeap* heap) : _g1h(heap), _survivor_is_full(false), _old_is_full(false) { } virtual ~G1Allocator() { }
*** 100,109 **** --- 104,119 ---- // may not be a humongous - it must fit into a single heap region. HeapWord* par_allocate_during_gc(InCSetState dest, size_t word_size, AllocationContext_t context); + HeapWord* par_allocate_during_gc(InCSetState dest, + size_t min_word_size, + size_t desired_word_size, + size_t* actual_word_size, + AllocationContext_t context); + virtual size_t used_in_alloc_regions() = 0; }; // The default allocation region manager for G1. Provides a single mutator, survivor // and old generation allocation region.
< prev index next >