changeset 561:5bfdb08ea692

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