comparison src/share/vm/asm/codeBuffer.cpp @ 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 d1605aabd0a1
children 0fbdb4381b99
comparison
equal deleted inserted replaced
560:b79faa366fbd 561:5bfdb08ea692
121 for (CodeBuffer* cb = this; cb != NULL; cb = cb->before_expand()) { 121 for (CodeBuffer* cb = this; cb != NULL; cb = cb->before_expand()) {
122 // Previous incarnations of this buffer are held live, so that internal 122 // Previous incarnations of this buffer are held live, so that internal
123 // addresses constructed before expansions will not be confused. 123 // addresses constructed before expansions will not be confused.
124 cb->free_blob(); 124 cb->free_blob();
125 } 125 }
126
127 // free any overflow storage
128 delete _overflow_arena;
129
126 #ifdef ASSERT 130 #ifdef ASSERT
127 Copy::fill_to_bytes(this, sizeof(*this), badResourceValue); 131 Copy::fill_to_bytes(this, sizeof(*this), badResourceValue);
128 #endif 132 #endif
129 } 133 }
130 134