mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
Merge pull request #278 from dicej/idleifnecessary-performance
only enter IdleState if necessary in idleIfNecessary
This commit is contained in:
commit
749d1bf064
@ -2981,7 +2981,9 @@ gcIfNecessary(MyThread* t)
|
||||
|
||||
void idleIfNecessary(MyThread* t)
|
||||
{
|
||||
ENTER(t, Thread::IdleState);
|
||||
if (UNLIKELY(t->m->exclusive)) {
|
||||
ENTER(t, Thread::IdleState);
|
||||
}
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
@ -768,7 +768,9 @@ pushField(Thread* t, object target, object field)
|
||||
}
|
||||
|
||||
void safePoint(Thread* t) {
|
||||
ENTER(t, Thread::IdleState);
|
||||
if (UNLIKELY(t->m->exclusive)) {
|
||||
ENTER(t, Thread::IdleState);
|
||||
}
|
||||
}
|
||||
|
||||
object
|
||||
|
Loading…
Reference in New Issue
Block a user