From 1e601fb467be46d1f5437bb7e08ec876ce52a811 Mon Sep 17 00:00:00 2001 From: Srdjan Mitrovic Date: Thu, 7 Apr 2016 15:58:54 -0700 Subject: [PATCH] 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 . --- runtime/vm/safepoint.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/runtime/vm/safepoint.h b/runtime/vm/safepoint.h index 1c13a872f37..947742512dd 100644 --- a/runtime/vm/safepoint.h +++ b/runtime/vm/safepoint.h @@ -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()); - } } }