changeset 2025:a13c4b3f024e

6782260: Memory leak in CodeBuffer::create_patch_overflow Reviewed-by: phh, kvn
author never
date Tue, 03 Feb 2009 18:05:19 -0800
parents 859d11cea3f8
children d15da7324f58
files hotspot/src/share/vm/asm/codeBuffer.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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