hotspot/src/share/vm/oops/methodData.hpp
changeset 24442 4d4ae31dea26
parent 24088 adf36ca51f17
child 24476 912595db2e75
--- a/hotspot/src/share/vm/oops/methodData.hpp	Tue May 13 11:25:17 2014 +0200
+++ b/hotspot/src/share/vm/oops/methodData.hpp	Tue May 13 11:32:10 2014 -0700
@@ -2059,6 +2059,7 @@
   // Counter values at the time profiling started.
   int               _invocation_counter_start;
   int               _backedge_counter_start;
+  uint              _tenure_traps;
 
 #if INCLUDE_RTM_OPT
   // State of RTM code generation during compilation of the method
@@ -2398,6 +2399,12 @@
       method()->set_not_compilable(CompLevel_full_optimization, true, "decompile_count > PerMethodRecompilationCutoff");
     }
   }
+  uint tenure_traps() const {
+    return _tenure_traps;
+  }
+  void inc_tenure_traps() {
+    _tenure_traps += 1;
+  }
 
   // Return pointer to area dedicated to parameters in MDO
   ParametersTypeData* parameters_type_data() const {