Correctly visit all external strings. (issue 11340010)

17 views
Skip to first unread message

yan...@chromium.org

unread,
Oct 29, 2012, 12:38:07 PM10/29/12
to erik....@gmail.com, v8-...@googlegroups.com, loi...@chromium.org, yu...@chromium.org
Reviewers: Erik Corry,

Message:
Please take a look.

This solves the issue in https://chromiumcodereview.appspot.com/11315004/
that we have discussed about. It implements option 3 in my reply: we visit
all
strings in the external string table that are not symbols, and then visit
the
all external strings in the symbol table (the rest).

Description:
Correctly visit all external strings.

BUG=


Please review this at https://chromiumcodereview.appspot.com/11340010/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
M src/heap.cc
M test/cctest/test-api.cc


loi...@chromium.org

unread,
Oct 31, 2012, 11:19:50 AM10/31/12
to yan...@chromium.org, erik....@gmail.com, v8-...@googlegroups.com, yu...@chromium.org

loi...@chromium.org

unread,
Nov 2, 2012, 7:51:40 AM11/2/12
to yan...@chromium.org, erik....@gmail.com, v8-...@googlegroups.com, yu...@chromium.org
On 2012/10/31 15:19:50, loislo wrote:
> sounds good to me

ping

https://chromiumcodereview.appspot.com/11340010/

erik...@google.com

unread,
Nov 2, 2012, 8:02:58 AM11/2/12
to yan...@chromium.org, erik....@gmail.com, v8-...@googlegroups.com, yu...@chromium.org
LGTM


https://chromiumcodereview.appspot.com/11340010/diff/1/src/heap.cc
File src/heap.cc (right):

https://chromiumcodereview.appspot.com/11340010/diff/1/src/heap.cc#newcode1601
src/heap.cc:1601: } external_string_table_visitor(visitor);
Please add a blank line here between the class definition and the
invocation of Iterate, so it stands out more. Or you could move it down
to the other invocation

https://chromiumcodereview.appspot.com/11340010/diff/1/src/heap.cc#newcode1619
src/heap.cc:1619: } symbol_table_visitor(visitor);
Blank line here please.

https://chromiumcodereview.appspot.com/11340010/

erik...@google.com

unread,
Nov 2, 2012, 8:04:36 AM11/2/12
to yan...@chromium.org, erik....@gmail.com, v8-...@googlegroups.com, yu...@chromium.org
One more thing: the comment in include/v8.h mentions that this may be slow,
which it probably isn't. On the other hand it should probably mention that
we
don't do a GC as part of this call, so you may get callbacks for resources
that
are actually dead.

https://chromiumcodereview.appspot.com/11340010/
Reply all
Reply to author
Forward
0 new messages