< prev index next >

src/hotspot/share/runtime/synchronizer.cpp

Print this page
rev 54621 : imported patch 8221734-v1

*** 1312,1322 **** oop object, const InflateCause cause) { // Inflate mutates the heap ... // Relaxing assertion for bug 6320749. assert(Universe::verify_in_progress() || ! !SafepointSynchronize::is_at_safepoint(), "invariant"); EventJavaMonitorInflate event; for (;;) { const markOop mark = object->mark(); --- 1312,1322 ---- 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"); EventJavaMonitorInflate event; for (;;) { const markOop mark = object->mark();
*** 1441,1451 **** // 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(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()) { --- 1441,1451 ---- // 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; 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()) {
*** 1491,1501 **** // 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(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()) { --- 1491,1501 ---- // 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; 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 >