< prev index next >

src/hotspot/share/runtime/synchronizer.cpp

Print this page
rev 54838 : [mq]: 8221734-v2
rev 54839 : [mq]: 8221734-v3

@@ -1313,11 +1313,11 @@
                                            oop object,
                                            const InflateCause cause) {
   // Inflate mutates the heap ...
   // Relaxing assertion for bug 6320749.
   assert(Universe::verify_in_progress() ||
-         !Universe::heap()->is_gc_active(), "invariant");
+         !SafepointSynchronize::is_at_safepoint(), "invariant");
 
   EventJavaMonitorInflate event;
 
   for (;;) {
     const markOop mark = object->mark();

@@ -1442,11 +1442,11 @@
 
       // Hopefully the performance counters are allocated on distinct cache lines
       // to avoid false sharing on MP systems ...
       OM_PERFDATA_OP(Inflations, inc());
       if (log_is_enabled(Trace, monitorinflation)) {
-        ResourceMark rm;
+        ResourceMark rm(Self);
         lsh.print_cr("inflate(has_locker): object=" INTPTR_FORMAT ", mark="
                      INTPTR_FORMAT ", type='%s'", p2i(object),
                      p2i(object->mark()), object->klass()->external_name());
       }
       if (event.should_commit()) {

@@ -1492,11 +1492,11 @@
 
     // Hopefully the performance counters are allocated on distinct
     // cache lines to avoid false sharing on MP systems ...
     OM_PERFDATA_OP(Inflations, inc());
     if (log_is_enabled(Trace, monitorinflation)) {
-      ResourceMark rm;
+      ResourceMark rm(Self);
       lsh.print_cr("inflate(neutral): object=" INTPTR_FORMAT ", mark="
                    INTPTR_FORMAT ", type='%s'", p2i(object),
                    p2i(object->mark()), object->klass()->external_name());
     }
     if (event.should_commit()) {
< prev index next >