# HG changeset patch # User never # Date 1233713119 28800 # Node ID a13c4b3f024e68af49de76f6849f00894a683e10 # Parent 859d11cea3f877397339a8a3372aeaf7e1d7daf5 6782260: Memory leak in CodeBuffer::create_patch_overflow Reviewed-by: phh, kvn diff -r 859d11cea3f8 -r a13c4b3f024e hotspot/src/share/vm/asm/codeBuffer.cpp --- a/hotspot/src/share/vm/asm/codeBuffer.cpp Tue Feb 03 08:10:28 2009 -0800 +++ b/hotspot/src/share/vm/asm/codeBuffer.cpp Tue Feb 03 18:05:19 2009 -0800 @@ -123,6 +123,10 @@ // addresses constructed before expansions will not be confused. cb->free_blob(); } + + // free any overflow storage + delete _overflow_arena; + #ifdef ASSERT Copy::fill_to_bytes(this, sizeof(*this), badResourceValue); #endif