Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/gcLocker.cpp @ 4873:0382d2b469b2
7013347: allow crypto functions to be called inline to enhance performance
Reviewed-by: kvn
author | never |
---|---|
date | Wed, 01 Feb 2012 16:57:08 -0800 |
parents | 1a2723f7ad8e |
children | 09d00c18e323 |
line wrap: on
line diff
--- a/src/share/vm/memory/gcLocker.cpp Wed Feb 01 07:59:01 2012 -0800 +++ b/src/share/vm/memory/gcLocker.cpp Wed Feb 01 16:57:08 2012 -0800 @@ -69,7 +69,7 @@ _needs_gc = true; if (PrintJNIGCStalls && PrintGCDetails) { ResourceMark rm; // JavaThread::name() allocates to convert to UTF8 - _wait_begin = tty->time_stamp().milliseconds(); + _wait_begin = os::javaTimeNanos() / NANOSECS_PER_MILLISEC; gclog_or_tty->print_cr(INT64_FORMAT ": Setting _needs_gc. Thread \"%s\" %d locked.", _wait_begin, Thread::current()->name(), _jni_lock_count); } @@ -86,7 +86,7 @@ if (PrintJNIGCStalls && PrintGCDetails) { ResourceMark rm; // JavaThread::name() allocates to convert to UTF8 gclog_or_tty->print_cr(INT64_FORMAT ": Allocation failed. Thread \"%s\" is stalled by JNI critical section, %d locked.", - tty->time_stamp().milliseconds() - _wait_begin, Thread::current()->name(), _jni_lock_count); + (os::javaTimeNanos() / NANOSECS_PER_MILLISEC) - _wait_begin, Thread::current()->name(), _jni_lock_count); } } @@ -132,7 +132,7 @@ if (PrintJNIGCStalls && PrintGCDetails) { ResourceMark rm; // JavaThread::name() allocates to convert to UTF8 gclog_or_tty->print_cr(INT64_FORMAT ": Thread \"%s\" is performing GC after exiting critical section, %d locked", - tty->time_stamp().milliseconds() - _wait_begin, Thread::current()->name(), _jni_lock_count); + (os::javaTimeNanos() / NANOSECS_PER_MILLISEC) - _wait_begin, Thread::current()->name(), _jni_lock_count); } Universe::heap()->collect(GCCause::_gc_locker); }