< prev index next >

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

Print this page
rev 8813 : imported patch 8003237-no-wait-for-free-list
rev 8814 : imported patch jon-fast-evac-failure
rev 8816 : [mq]: 8133470-fix-plab-inline
rev 8817 : imported patch 8073013-add-detailed-information-about-plab-memory-usage
rev 8818 : imported patch jon-review-statistics
rev 8821 : imported patch move-jfr-event-to-extra-cr
rev 8822 : imported patch 8133530-add-jfr-event-for-evacuation
rev 8823 : imported patch 8040162-avoid-reallocating-plab-allocators
rev 8825 : imported patch mikael-suggestions-pss-alloc


 567   // Resize the heap if necessary after a full collection.  If this is
 568   // after a collect-for allocation, "word_size" is the allocation size,
 569   // and will be considered part of the used portion of the heap.
 570   void resize_if_necessary_after_full_collection(size_t word_size);
 571 
 572   // Callback from VM_G1CollectForAllocation operation.
 573   // This function does everything necessary/possible to satisfy a
 574   // failed allocation request (including collection, expansion, etc.)
 575   HeapWord* satisfy_failed_allocation(size_t word_size,
 576                                       AllocationContext_t context,
 577                                       bool* succeeded);
 578 
 579   // Attempting to expand the heap sufficiently
 580   // to support an allocation of the given "word_size".  If
 581   // successful, perform the allocation and return the address of the
 582   // allocated block, or else "NULL".
 583   HeapWord* expand_and_allocate(size_t word_size, AllocationContext_t context);
 584 
 585   // Process any reference objects discovered during
 586   // an incremental evacuation pause.
 587   void process_discovered_references(G1ParScanThreadState** pss);
 588 
 589   // Enqueue any remaining discovered references
 590   // after processing.
 591   void enqueue_discovered_references(G1ParScanThreadState** pss);
 592 
 593 public:
 594   FlexibleWorkGang* workers() const { return _workers; }
 595 
 596   G1Allocator* allocator() {
 597     return _allocator;
 598   }
 599 
 600   G1MonitoringSupport* g1mm() {
 601     assert(_g1mm != NULL, "should have been initialized");
 602     return _g1mm;
 603   }
 604 
 605   // Expand the garbage-first heap by at least the given size (in bytes!).
 606   // Returns true if the heap was expanded by the requested amount;
 607   // false otherwise.
 608   // (Rounds up to a HeapRegion boundary.)
 609   bool expand(size_t expand_bytes);
 610 
 611   // Returns the PLAB statistics for a given destination.




 567   // Resize the heap if necessary after a full collection.  If this is
 568   // after a collect-for allocation, "word_size" is the allocation size,
 569   // and will be considered part of the used portion of the heap.
 570   void resize_if_necessary_after_full_collection(size_t word_size);
 571 
 572   // Callback from VM_G1CollectForAllocation operation.
 573   // This function does everything necessary/possible to satisfy a
 574   // failed allocation request (including collection, expansion, etc.)
 575   HeapWord* satisfy_failed_allocation(size_t word_size,
 576                                       AllocationContext_t context,
 577                                       bool* succeeded);
 578 
 579   // Attempting to expand the heap sufficiently
 580   // to support an allocation of the given "word_size".  If
 581   // successful, perform the allocation and return the address of the
 582   // allocated block, or else "NULL".
 583   HeapWord* expand_and_allocate(size_t word_size, AllocationContext_t context);
 584 
 585   // Process any reference objects discovered during
 586   // an incremental evacuation pause.
 587   void process_discovered_references(G1ParScanThreadState** per_thread_states);
 588 
 589   // Enqueue any remaining discovered references
 590   // after processing.
 591   void enqueue_discovered_references(G1ParScanThreadState** per_thread_states);
 592 
 593 public:
 594   FlexibleWorkGang* workers() const { return _workers; }
 595 
 596   G1Allocator* allocator() {
 597     return _allocator;
 598   }
 599 
 600   G1MonitoringSupport* g1mm() {
 601     assert(_g1mm != NULL, "should have been initialized");
 602     return _g1mm;
 603   }
 604 
 605   // Expand the garbage-first heap by at least the given size (in bytes!).
 606   // Returns true if the heap was expanded by the requested amount;
 607   // false otherwise.
 608   // (Rounds up to a HeapRegion boundary.)
 609   bool expand(size_t expand_bytes);
 610 
 611   // Returns the PLAB statistics for a given destination.


< prev index next >