Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Issue 265823006: Add defensive assert for having a weak, empty presistent in a (Closed)

Created:
6 years, 7 months ago by vogelheim
Modified:
6 years, 7 months ago
CC:
v8-dev, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add defensive assert against a weak callback on an empty persistent. (This shouldn't happen in the first place, as by definition that callback would never be called. However, the referenced bug sorta looks like this happened. If so, the CHECK should help us pinpoint the culprit.) R=jochen@chromium.org BUG=368095 LOG=N Committed: https://code.google.com/p/v8/source/detail?r=21521

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/global-handles.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jochen (gone - plz use gerrit)
https://codereview.chromium.org/265823006/diff/1/include/v8-util.h File include/v8-util.h (right): https://codereview.chromium.org/265823006/diff/1/include/v8-util.h#newcode288 include/v8-util.h:288: RELEASE_ASSERT(!persistent->IsEmpty()); the v8 equivalent to RELEASE_ASSERT() is CHECK(), however, ...
6 years, 7 months ago (2014-05-05 17:42:46 UTC) #1
vogelheim
PTAL. That first version wasn't meant for review, as both you and the compiler noticed.. ...
6 years, 7 months ago (2014-05-06 11:55:07 UTC) #2
jochen (gone - plz use gerrit)
lgtm
6 years, 7 months ago (2014-05-06 11:58:02 UTC) #3
vogelheim
6 years, 7 months ago (2014-05-27 12:26:52 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r21521 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698