Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/stubCodeGenerator.cpp @ 8767:a5de0cc2f91c
8008555: Debugging code in compiled method sometimes leaks memory
Summary: support for strings that have same life-time as code that uses them.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Mon, 18 Mar 2013 13:19:06 +0100 |
parents | cd3d6a6b95d9 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/runtime/stubCodeGenerator.cpp Sat Mar 16 21:44:52 2013 -0700 +++ b/src/share/vm/runtime/stubCodeGenerator.cpp Mon Mar 18 13:19:06 2013 +0100 @@ -87,7 +87,7 @@ CodeBuffer* cbuf = _masm->code(); CodeBlob* blob = CodeCache::find_blob_unsafe(cbuf->insts()->start()); if (blob != NULL) { - blob->set_comments(cbuf->comments()); + blob->set_strings(cbuf->strings()); } bool saw_first = false; StubCodeDesc* toprint[1000];