Mercurial > hg > graal-jvmci-8
comparison src/share/vm/asm/assembler.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 | d02120b7a34f |
children | 746b070f5022 |
comparison
equal
deleted
inserted
replaced
8765:592f9722c72e | 8767:a5de0cc2f91c |
---|---|
282 } | 282 } |
283 void AbstractAssembler::update_delayed_values() { | 283 void AbstractAssembler::update_delayed_values() { |
284 DelayedConstant::update_all(); | 284 DelayedConstant::update_all(); |
285 } | 285 } |
286 | 286 |
287 | |
288 | |
289 | |
290 void AbstractAssembler::block_comment(const char* comment) { | 287 void AbstractAssembler::block_comment(const char* comment) { |
291 if (sect() == CodeBuffer::SECT_INSTS) { | 288 if (sect() == CodeBuffer::SECT_INSTS) { |
292 code_section()->outer()->block_comment(offset(), comment); | 289 code_section()->outer()->block_comment(offset(), comment); |
293 } | 290 } |
291 } | |
292 | |
293 const char* AbstractAssembler::code_string(const char* str) { | |
294 if (sect() == CodeBuffer::SECT_INSTS || sect() == CodeBuffer::SECT_STUBS) { | |
295 return code_section()->outer()->code_string(str); | |
296 } | |
297 return NULL; | |
294 } | 298 } |
295 | 299 |
296 bool MacroAssembler::needs_explicit_null_check(intptr_t offset) { | 300 bool MacroAssembler::needs_explicit_null_check(intptr_t offset) { |
297 // Exception handler checks the nmethod's implicit null checks table | 301 // Exception handler checks the nmethod's implicit null checks table |
298 // only when this method returns false. | 302 // only when this method returns false. |