Mercurial > hg > truffle
diff src/share/vm/asm/assembler.hpp @ 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 | ffa87474d7a4 |
children | de6a9e811145 15120a36272d |
line wrap: on
line diff
--- a/src/share/vm/asm/assembler.hpp Sat Mar 16 21:44:52 2013 -0700 +++ b/src/share/vm/asm/assembler.hpp Mon Mar 18 13:19:06 2013 +0100 @@ -336,6 +336,8 @@ // along with the disassembly when printing nmethods. Currently // only supported in the instruction section of the code buffer. void block_comment(const char* comment); + // Copy str to a buffer that has the same lifetime as the CodeBuffer + const char* code_string(const char* str); // Label functions void bind(Label& L); // binds an unbound label L to the current code position