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,8 +2981,10 @@ gcIfNecessary(MyThread* t)
void idleIfNecessary(MyThread* t) void idleIfNecessary(MyThread* t)
{ {
if (UNLIKELY(t->m->exclusive)) {
ENTER(t, Thread::IdleState); ENTER(t, Thread::IdleState);
} }
}
unsigned unsigned
resultSize(MyThread* t, unsigned code) resultSize(MyThread* t, unsigned code)

View File

@ -768,8 +768,10 @@ pushField(Thread* t, object target, object field)
} }
void safePoint(Thread* t) { void safePoint(Thread* t) {
if (UNLIKELY(t->m->exclusive)) {
ENTER(t, Thread::IdleState); ENTER(t, Thread::IdleState);
} }
}
object object
interpret3(Thread* t, const int base) interpret3(Thread* t, const int base)