# HG changeset patch # User sangheki # Date 1417066705 28800 # Node ID bf55adf78eeb8e2ce93aabe1cc038d96fa1c4749 # Parent a19eb073e8621634a7d8bc675d9531031edccc76 8055239: assert(_thread == Thread::current()->osthread()) failed: The PromotionFailedInfo should be thread local Summary: Changed to trace and reset before second use of PromotionFailedInfo. Reviewed-by: jmasa, brutisso, kbarrett diff -r a19eb073e862 -r bf55adf78eeb hotspot/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp --- 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);