mirror of
https://github.com/corda/corda.git
synced 2025-01-22 04:18:31 +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)
|
void idleIfNecessary(MyThread* t)
|
||||||
{
|
{
|
||||||
ENTER(t, Thread::IdleState);
|
if (UNLIKELY(t->m->exclusive)) {
|
||||||
|
ENTER(t, Thread::IdleState);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned
|
unsigned
|
||||||
|
@ -768,7 +768,9 @@ pushField(Thread* t, object target, object field)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void safePoint(Thread* t) {
|
void safePoint(Thread* t) {
|
||||||
ENTER(t, Thread::IdleState);
|
if (UNLIKELY(t->m->exclusive)) {
|
||||||
|
ENTER(t, Thread::IdleState);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
object
|
object
|
||||||
|
Loading…
Reference in New Issue
Block a user