Mercurial > hg > graal-jvmci-8
diff src/share/vm/c1/c1_Runtime1.cpp @ 6385:077fd901d7c7
enhanced tracing of Graal monitor slow paths (i.e., stub calls)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 13 Sep 2012 17:35:43 +0200 |
parents | 957c266d8bc5 |
children | 6b74f44c5059 |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_Runtime1.cpp Thu Sep 13 12:35:21 2012 +0200 +++ b/src/share/vm/c1/c1_Runtime1.cpp Thu Sep 13 17:35:43 2012 +0200 @@ -687,7 +687,9 @@ NOT_PRODUCT(_monitorenter_slowcase_cnt++;) #ifdef ASSERT if (TraceGraal >= 3) { - tty->print_cr("entered locking slow case with obj=" INTPTR_FORMAT " and lock= " INTPTR_FORMAT, obj, lock); + markOop mark = obj->mark(); + markOop dmw = mark->has_displaced_mark_helper() ? mark->displaced_mark_helper() : (markOop) (int*) 0xFFFFFFFF; + tty->print_cr("entered locking slow case with obj=" INTPTR_FORMAT ", mark=" INTPTR_FORMAT ", dmw=" INTPTR_FORMAT " and lock= " INTPTR_FORMAT, obj, mark, dmw , lock); } if (PrintBiasedLockingStatistics) { Atomic::inc(BiasedLocking::slow_path_entry_count_addr()); @@ -741,6 +743,11 @@ } else { ObjectSynchronizer::fast_exit(obj, lock, THREAD); } +#ifdef ASSERT + if (TraceGraal >= 3) { + tty->print_cr("exited locking slow case with obj=" INTPTR_FORMAT ", mark=" INTPTR_FORMAT " and lock= " INTPTR_FORMAT, obj, obj->mark(), lock); + } +#endif JRT_END JRT_ENTRY(void, Runtime1::graal_log_object(JavaThread* thread, oop obj, jboolean newline, jboolean string))