index

src/share/vm/gc_implementation/g1/vm_operations_g1.cpp

Print this page
rev 8024 : imported patch event1
* * *
imported patch event2

@@ -33,13 +33,15 @@
 #include "gc_implementation/shared/isGCActiveMark.hpp"
 #include "gc_implementation/g1/vm_operations_g1.hpp"
 #include "runtime/interfaceSupport.hpp"
 
 VM_G1CollectForAllocation::VM_G1CollectForAllocation(uint gc_count_before,
-                                                     size_t word_size)
+                                                     size_t word_size,
+                                                     uint gc_attempt)
   : VM_G1OperationWithAllocRequest(gc_count_before, word_size,
-                                   GCCause::_allocation_failure) {
+                                   GCCause::_allocation_failure,
+                                   gc_attempt) {
   guarantee(word_size != 0, "An allocation should always be requested with this operation.");
 }
 
 void VM_G1CollectForAllocation::doit() {
   G1CollectedHeap* g1h = G1CollectedHeap::heap();

@@ -58,12 +60,13 @@
 
 VM_G1IncCollectionPause::VM_G1IncCollectionPause(uint           gc_count_before,
                                                  size_t         word_size,
                                                  bool           should_initiate_conc_mark,
                                                  double         target_pause_time_ms,
-                                                 GCCause::Cause gc_cause)
-  : VM_G1OperationWithAllocRequest(gc_count_before, word_size, gc_cause),
+                                                 GCCause::Cause gc_cause,
+                                                 uint           gc_attempt)
+  : VM_G1OperationWithAllocRequest(gc_count_before, word_size, gc_cause, gc_attempt),
     _should_initiate_conc_mark(should_initiate_conc_mark),
     _target_pause_time_ms(target_pause_time_ms),
     _should_retry_gc(false),
     _old_marking_cycles_completed_before(0) {
   guarantee(target_pause_time_ms > 0.0,
index