Restore invariant (next of first deallocated must point to the head) before calling...
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 Nov 2009 13:50:07 +0000 (13:50 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 Nov 2009 13:50:07 +0000 (13:50 +0000)
commit9a545949a420ff74ec7e081acc0b755950c68326
treed6a0857b1944bc9b7f77d1338f3aa29b7a505f5d
parent41749529ddcb0341881ab13ae30c0812f993b663
Restore invariant (next of first deallocated must point to the head) before calling into weak
callbacks.

Otherwise if callback allocates a new handle, it could orphan some global handles (with disastorous
consequences if those global handles are cached).

Review URL: http://codereview.chromium.org/395024

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3318 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/global-handles.cc
test/cctest/test-api.cc