From 6eb2d35870f87b933595bdef455d685ee59adf1d Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Tue, 25 Feb 2014 09:27:05 +0000 Subject: [PATCH] Check that after a weak callback, the handle is either dead or strong BUG=346061 R=dcarney@chromium.org LOG=y Review URL: https://codereview.chromium.org/177943002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19534 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/global-handles.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global-handles.cc b/src/global-handles.cc index 0944979..211bb1c 100644 --- a/src/global-handles.cc +++ b/src/global-handles.cc @@ -271,7 +271,7 @@ class GlobalHandles::Node { } // Absence of explicit cleanup or revival of weak handle // in most of the cases would lead to memory leak. - ASSERT(state() != NEAR_DEATH); + CHECK(state() != NEAR_DEATH); return true; } -- 2.7.4