# HG changeset patch # User vlivanov # Date 1359715823 28800 # Node ID 41f75023e6a6092bf3a9e917b243d6c5cd1db576 # Parent cce07c613ece4e2e26c73633754d46b8331ed92e 8006410: allocating without ResourceMark when CompileCommand was specified Reviewed-by: kvn, vlivanov Contributed-by: Igor Ignatyev diff -r cce07c613ece -r 41f75023e6a6 hotspot/src/share/vm/ci/ciEnv.cpp --- a/hotspot/src/share/vm/ci/ciEnv.cpp Fri Jan 25 03:03:23 2013 -0800 +++ b/hotspot/src/share/vm/ci/ciEnv.cpp Fri Feb 01 02:50:23 2013 -0800 @@ -1168,7 +1168,7 @@ void ciEnv::dump_replay_data(outputStream* out) { ASSERT_IN_VM; - + ResourceMark rm; #if INCLUDE_JVMTI out->print_cr("JvmtiExport can_access_local_variables %d", _jvmti_can_access_local_variables); out->print_cr("JvmtiExport can_hotswap_or_post_breakpoint %d", _jvmti_can_hotswap_or_post_breakpoint); diff -r cce07c613ece -r 41f75023e6a6 hotspot/src/share/vm/ci/ciInstanceKlass.cpp --- a/hotspot/src/share/vm/ci/ciInstanceKlass.cpp Fri Jan 25 03:03:23 2013 -0800 +++ b/hotspot/src/share/vm/ci/ciInstanceKlass.cpp Fri Feb 01 02:50:23 2013 -0800 @@ -580,6 +580,7 @@ } void do_field(fieldDescriptor* fd) { if (fd->is_final() && !fd->has_initial_value()) { + ResourceMark rm; oop mirror = fd->field_holder()->java_mirror(); _out->print("staticfield %s %s %s ", _holder, fd->name()->as_quoted_ascii(), fd->signature()->as_quoted_ascii()); switch (fd->field_type()) { @@ -643,6 +644,8 @@ void ciInstanceKlass::dump_replay_data(outputStream* out) { ASSERT_IN_VM; + ResourceMark rm; + InstanceKlass* ik = get_instanceKlass(); ConstantPool* cp = ik->constants(); diff -r cce07c613ece -r 41f75023e6a6 hotspot/src/share/vm/ci/ciMethod.cpp --- a/hotspot/src/share/vm/ci/ciMethod.cpp Fri Jan 25 03:03:23 2013 -0800 +++ b/hotspot/src/share/vm/ci/ciMethod.cpp Fri Feb 01 02:50:23 2013 -0800 @@ -1178,6 +1178,7 @@ void ciMethod::dump_replay_data(outputStream* st) { ASSERT_IN_VM; + ResourceMark rm; Method* method = get_Method(); Klass* holder = method->method_holder(); st->print_cr("ciMethod %s %s %s %d %d %d %d %d", diff -r cce07c613ece -r 41f75023e6a6 hotspot/src/share/vm/ci/ciMethodData.cpp --- a/hotspot/src/share/vm/ci/ciMethodData.cpp Fri Jan 25 03:03:23 2013 -0800 +++ b/hotspot/src/share/vm/ci/ciMethodData.cpp Fri Feb 01 02:50:23 2013 -0800 @@ -374,6 +374,7 @@ void ciMethodData::dump_replay_data(outputStream* out) { ASSERT_IN_VM; + ResourceMark rm; MethodData* mdo = get_MethodData(); Method* method = mdo->method(); Klass* holder = method->method_holder(); diff -r cce07c613ece -r 41f75023e6a6 hotspot/src/share/vm/oops/symbol.cpp --- a/hotspot/src/share/vm/oops/symbol.cpp Fri Jan 25 03:03:23 2013 -0800 +++ b/hotspot/src/share/vm/oops/symbol.cpp Fri Feb 01 02:50:23 2013 -0800 @@ -152,6 +152,7 @@ } void Symbol::print_symbol_on(outputStream* st) const { + ResourceMark rm; st = st ? st : tty; st->print("%s", as_quoted_ascii()); }