Merge pull request #278 from dicej/idleifnecessary-performance

only enter IdleState if necessary in idleIfNecessary
This commit is contained in:
Joshua Warner 2014-06-05 08:13:12 -06:00
commit 749d1bf064
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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