hotspot/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp
changeset 27895 bf55adf78eeb
parent 27251 7d667f91ec8d
child 27899 17754211a7ab
--- a/hotspot/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp	Wed Nov 26 20:36:36 2014 +0000
+++ b/hotspot/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp	Wed Nov 26 21:38:25 2014 -0800
@@ -999,6 +999,11 @@
   thread_state_set.reset(0 /* Bad value in debug if not reset */,
                          promotion_failed());
 
+  // Trace and reset failed promotion info.
+  if (promotion_failed()) {
+    thread_state_set.trace_promotion_failed(gc_tracer);
+  }
+
   // Process (weak) reference objects found during scavenge.
   ReferenceProcessor* rp = ref_processor();
   IsAliveClosure is_alive(this);