6782260: Memory leak in CodeBuffer::create_patch_overflow

Tue, 03 Feb 2009 18:05:19 -0800

author
never
date
Tue, 03 Feb 2009 18:05:19 -0800
changeset 996
5bfdb08ea692
parent 995
b79faa366fbd
child 997
1580954e694c

6782260: Memory leak in CodeBuffer::create_patch_overflow
Reviewed-by: phh, kvn

src/share/vm/asm/codeBuffer.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/asm/codeBuffer.cpp	Tue Feb 03 08:10:28 2009 -0800
     1.2 +++ b/src/share/vm/asm/codeBuffer.cpp	Tue Feb 03 18:05:19 2009 -0800
     1.3 @@ -123,6 +123,10 @@
     1.4      // addresses constructed before expansions will not be confused.
     1.5      cb->free_blob();
     1.6    }
     1.7 +
     1.8 +  // free any overflow storage
     1.9 +  delete _overflow_arena;
    1.10 +
    1.11  #ifdef ASSERT
    1.12    Copy::fill_to_bytes(this, sizeof(*this), badResourceValue);
    1.13  #endif

mercurial