mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6782260: Memory leak in CodeBuffer::create_patch_overflow
Reviewed-by: phh, kvn
This commit is contained in:
parent
17d35f31a2
commit
c46f747070
1 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,10 @@ CodeBuffer::~CodeBuffer() {
|
|||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue