From c46f7470707a9830f649161eb04c7445d2054c93 Mon Sep 17 00:00:00 2001 From: Tom Rodriguez Date: Tue, 3 Feb 2009 18:05:19 -0800 Subject: [PATCH] 6782260: Memory leak in CodeBuffer::create_patch_overflow Reviewed-by: phh, kvn --- hotspot/src/share/vm/asm/codeBuffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hotspot/src/share/vm/asm/codeBuffer.cpp b/hotspot/src/share/vm/asm/codeBuffer.cpp index cbd16d3e8b3..7ae4a13232a 100644 --- a/hotspot/src/share/vm/asm/codeBuffer.cpp +++ b/hotspot/src/share/vm/asm/codeBuffer.cpp @@ -123,6 +123,10 @@ CodeBuffer::~CodeBuffer() { // 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