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:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user