Mercurial > hg > graal-compiler
comparison src/share/vm/code/codeBlob.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 | b31471cdc53e |
children | b9a918201d47 a7fb14888912 |
comparison
equal
deleted
inserted
replaced
8765:592f9722c72e | 8767:a5de0cc2f91c |
---|---|
184 void CodeBlob::flush() { | 184 void CodeBlob::flush() { |
185 if (_oop_maps) { | 185 if (_oop_maps) { |
186 FREE_C_HEAP_ARRAY(unsigned char, _oop_maps, mtCode); | 186 FREE_C_HEAP_ARRAY(unsigned char, _oop_maps, mtCode); |
187 _oop_maps = NULL; | 187 _oop_maps = NULL; |
188 } | 188 } |
189 _comments.free(); | 189 _strings.free(); |
190 } | 190 } |
191 | 191 |
192 | 192 |
193 OopMap* CodeBlob::oop_map_for_return_address(address return_address) { | 193 OopMap* CodeBlob::oop_map_for_return_address(address return_address) { |
194 assert(oop_maps() != NULL, "nope"); | 194 assert(oop_maps() != NULL, "nope"); |