6782260: Memory leak in CodeBuffer::create_patch_overflow
authornever
Tue, 03 Feb 2009 18:05:19 -0800
changeset 2025 a13c4b3f024e
parent 2024 859d11cea3f8
child 2026 d15da7324f58
6782260: Memory leak in CodeBuffer::create_patch_overflow Reviewed-by: phh, kvn
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