Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 12113:f7d3b4387a16
8022872: G1: Use correct GC cause for young GC triggered by humongous allocations
Reviewed-by: tonyp, tschatzl
author | brutisso |
---|---|
date | Wed, 21 Aug 2013 22:35:56 +0200 |
parents | 5888334c9c24 |
children | 40136aa2cdb1 |
comparison
equal
deleted
inserted
replaced
12088:cb9da55b1990 | 12113:f7d3b4387a16 |
---|---|
774 // Heap_lock when we enter this method, we will pass the | 774 // Heap_lock when we enter this method, we will pass the |
775 // gc_count_before (i.e., total_collections()) as a parameter since | 775 // gc_count_before (i.e., total_collections()) as a parameter since |
776 // it has to be read while holding the Heap_lock. Currently, both | 776 // it has to be read while holding the Heap_lock. Currently, both |
777 // methods that call do_collection_pause() release the Heap_lock | 777 // methods that call do_collection_pause() release the Heap_lock |
778 // before the call, so it's easy to read gc_count_before just before. | 778 // before the call, so it's easy to read gc_count_before just before. |
779 HeapWord* do_collection_pause(size_t word_size, | 779 HeapWord* do_collection_pause(size_t word_size, |
780 unsigned int gc_count_before, | 780 unsigned int gc_count_before, |
781 bool* succeeded); | 781 bool* succeeded, |
782 GCCause::Cause gc_cause); | |
782 | 783 |
783 // The guts of the incremental collection pause, executed by the vm | 784 // The guts of the incremental collection pause, executed by the vm |
784 // thread. It returns false if it is unable to do the collection due | 785 // thread. It returns false if it is unable to do the collection due |
785 // to the GC locker being active, true otherwise | 786 // to the GC locker being active, true otherwise |
786 bool do_collection_pause_at_safepoint(double target_pause_time_ms); | 787 bool do_collection_pause_at_safepoint(double target_pause_time_ms); |