Do not block for safepoint when transitioning from generated code to VM, otherwise the result may not be GC'd.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/1869933002 .
This commit is contained in:
Srdjan Mitrovic
2016-04-07 15:58:54 -07:00
parent 3dbaade249
commit 1e601fb467
-6
View File
@@ -309,12 +309,6 @@ class TransitionToGenerated : public TransitionSafepointState {
} else {
ASSERT(execution_state_ == Thread::kThreadInVM);
thread()->set_execution_state(Thread::kThreadInVM);
// Fast check to see if a safepoint is requested or not.
// We do the more expensive operation of blocking the thread
// only if a safepoint is requested.
if (thread()->IsSafepointRequested()) {
handler()->BlockForSafepoint(thread());
}
}
}