mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8235998: [c2] Memory leaks during tracing after '8224193: stringStream should not use Resource Area'
Reviewed-by: dholmes, kvn
This commit is contained in:
parent
4deb35453f
commit
51abf67ce1
4 changed files with 33 additions and 3 deletions
|
@ -512,6 +512,8 @@ class Compile : public Phase {
|
|||
PrintInliningBuffer()
|
||||
: _cg(NULL) { _ss = new stringStream(); }
|
||||
|
||||
void freeStream() { _ss->~stringStream(); _ss = NULL; }
|
||||
|
||||
stringStream* ss() const { return _ss; }
|
||||
CallGenerator* cg() const { return _cg; }
|
||||
void set_cg(CallGenerator* cg) { _cg = cg; }
|
||||
|
@ -533,6 +535,7 @@ class Compile : public Phase {
|
|||
|
||||
void* _replay_inline_data; // Pointer to data loaded from file
|
||||
|
||||
void print_inlining_stream_free();
|
||||
void print_inlining_init();
|
||||
void print_inlining_reinit();
|
||||
void print_inlining_commit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue