Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 18603:43e2cc9a4fde
removed reference to com.oracle.graal.compiler.CompilerThread from VM code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 03 Dec 2014 18:53:22 +0100 |
parents | fa981f5bb53a |
children | c307546c7b0a |
comparison
equal
deleted
inserted
replaced
18602:7d8270532cd9 | 18603:43e2cc9a4fde |
---|---|
1431 | 1431 |
1432 jlong* JavaThread::_graal_old_thread_counters; | 1432 jlong* JavaThread::_graal_old_thread_counters; |
1433 | 1433 |
1434 bool graal_counters_include(JavaThread* thread) { | 1434 bool graal_counters_include(JavaThread* thread) { |
1435 oop threadObj = thread->threadObj(); | 1435 oop threadObj = thread->threadObj(); |
1436 return !GraalCountersExcludeCompiler || (!thread->is_Compiler_thread() && (threadObj == NULL || threadObj->klass() != SystemDictionary::CompilerThread_klass())); | 1436 return !GraalCountersExcludeCompiler || !thread->is_Compiler_thread(); |
1437 } | 1437 } |
1438 | 1438 |
1439 void JavaThread::collect_counters(typeArrayOop array) { | 1439 void JavaThread::collect_counters(typeArrayOop array) { |
1440 if (GraalCounterSize > 0) { | 1440 if (GraalCounterSize > 0) { |
1441 MutexLocker tl(Threads_lock); | 1441 MutexLocker tl(Threads_lock); |