1.1 --- a/src/share/vm/opto/runtime.cpp Tue Mar 25 12:54:21 2014 -0700 1.2 +++ b/src/share/vm/opto/runtime.cpp Tue Mar 25 17:07:36 2014 -0700 1.3 @@ -1311,6 +1311,14 @@ 1.4 tty->print_cr("%s", c->name()); 1.5 blc->print_on(tty); 1.6 } 1.7 +#if INCLUDE_RTM_OPT 1.8 + } else if (c->tag() == NamedCounter::RTMLockingCounter) { 1.9 + RTMLockingCounters* rlc = ((RTMLockingNamedCounter*)c)->counters(); 1.10 + if (rlc->nonzero()) { 1.11 + tty->print_cr("%s", c->name()); 1.12 + rlc->print_on(tty); 1.13 + } 1.14 +#endif 1.15 } 1.16 c = c->next(); 1.17 } 1.18 @@ -1350,6 +1358,8 @@ 1.19 NamedCounter* c; 1.20 if (tag == NamedCounter::BiasedLockingCounter) { 1.21 c = new BiasedLockingNamedCounter(strdup(st.as_string())); 1.22 + } else if (tag == NamedCounter::RTMLockingCounter) { 1.23 + c = new RTMLockingNamedCounter(strdup(st.as_string())); 1.24 } else { 1.25 c = new NamedCounter(strdup(st.as_string()), tag); 1.26 } 1.27 @@ -1358,6 +1368,7 @@ 1.28 // add counters so this is safe. 1.29 NamedCounter* head; 1.30 do { 1.31 + c->set_next(NULL); 1.32 head = _named_counters; 1.33 c->set_next(head); 1.34 } while (Atomic::cmpxchg_ptr(c, &_named_counters, head) != head);