diff src/share/vm/ci/ciInstanceKlass.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 5fc51c1ecdeb 6f3fd5150b67
line wrap: on
line diff
--- a/src/share/vm/ci/ciInstanceKlass.cpp	Fri Jan 25 03:03:23 2013 -0800
+++ b/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();