Mercurial > hg > truffle
comparison src/share/vm/oops/symbol.cpp @ 7990:fcc9e7681d63
8006410: allocating without ResourceMark when CompileCommand was specified
Reviewed-by: kvn, vlivanov
Contributed-by: Igor Ignatyev <igor.ignatyev@oracle.com>
author | vlivanov |
---|---|
date | Fri, 01 Feb 2013 02:50:23 -0800 |
parents | bd7a7ce2e264 |
children | 63e54c37ac64 |
comparison
equal
deleted
inserted
replaced
7946:6fbe8a57549d | 7990:fcc9e7681d63 |
---|---|
150 } | 150 } |
151 return as_C_string(str, buf_len); | 151 return as_C_string(str, buf_len); |
152 } | 152 } |
153 | 153 |
154 void Symbol::print_symbol_on(outputStream* st) const { | 154 void Symbol::print_symbol_on(outputStream* st) const { |
155 ResourceMark rm; | |
155 st = st ? st : tty; | 156 st = st ? st : tty; |
156 st->print("%s", as_quoted_ascii()); | 157 st->print("%s", as_quoted_ascii()); |
157 } | 158 } |
158 | 159 |
159 char* Symbol::as_quoted_ascii() const { | 160 char* Symbol::as_quoted_ascii() const { |