mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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.
|
// addresses constructed before expansions will not be confused.
|
||||||
cb->free_blob();
|
cb->free_blob();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// free any overflow storage
|
||||||
|
delete _overflow_arena;
|
||||||
|
|
||||||
#ifdef ASSERT
|
#ifdef ASSERT
|
||||||
Copy::fill_to_bytes(this, sizeof(*this), badResourceValue);
|
Copy::fill_to_bytes(this, sizeof(*this), badResourceValue);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue