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

Issue 8468016: Really fix missing HandleScope to prevent local handles to DOMWindow leaking. (Closed)

Created:
9 years, 1 month ago by mnaganov (inactive)
Modified:
9 years, 1 month ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev
Visibility:
Public.

Description

Really fix missing HandleScope to prevent local handles to DOMWindow leaking. A follow-up to r9994. R=vitalyr@chromium.org BUG=102895 TEST=cctests/test-heap-profiler/NoHandleLeaks Committed: http://code.google.com/p/v8/source/detail?r=10030

Patch Set 1 #

Total comments: 3

Patch Set 2 : Test added #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M src/profile-generator.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 chunks +15 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
mnaganov (inactive)
9 years, 1 month ago (2011-11-15 19:58:16 UTC) #1
Vitaly Repeshko
Will LGTM with a test :) and the comment addressed. http://codereview.chromium.org/8468016/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): http://codereview.chromium.org/8468016/diff/1/src/profile-generator.cc#newcode2476 ...
9 years, 1 month ago (2011-11-15 20:06:01 UTC) #2
Vitaly Repeshko
Now will LGTM with a test only :) http://codereview.chromium.org/8468016/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): http://codereview.chromium.org/8468016/diff/1/src/profile-generator.cc#newcode2476 src/profile-generator.cc:2476: isolate->global_handles()->IterateAllRoots(&enumerator); ...
9 years, 1 month ago (2011-11-15 20:07:18 UTC) #3
mnaganov (inactive)
http://codereview.chromium.org/8468016/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): http://codereview.chromium.org/8468016/diff/1/src/profile-generator.cc#newcode2476 src/profile-generator.cc:2476: isolate->global_handles()->IterateAllRoots(&enumerator); On 2011/11/15 20:07:19, Vitaly Repeshko wrote: > On ...
9 years, 1 month ago (2011-11-17 17:46:54 UTC) #4
Vitaly Repeshko
LGTM http://codereview.chromium.org/8468016/diff/4001/test/cctest/test-heap-profiler.cc File test/cctest/test-heap-profiler.cc (right): http://codereview.chromium.org/8468016/diff/4001/test/cctest/test-heap-profiler.cc#newcode898 test/cctest/test-heap-profiler.cc:898: TEST(NoHandleLeaks) { Can you also check that if ...
9 years, 1 month ago (2011-11-17 18:08:19 UTC) #5
mnaganov (inactive)
9 years, 1 month ago (2011-11-18 11:44:22 UTC) #6
On 2011/11/17 18:08:19, Vitaly Repeshko wrote:
> LGTM
> 
>
http://codereview.chromium.org/8468016/diff/4001/test/cctest/test-heap-profil...
> File test/cctest/test-heap-profiler.cc (right):
> 
>
http://codereview.chromium.org/8468016/diff/4001/test/cctest/test-heap-profil...
> test/cctest/test-heap-profiler.cc:898: TEST(NoHandleLeaks) {
> Can you also check that if there's a garbage global object at the time a
> snapshot is taken that it won't end up in the snapshot?

Thanks!

In the urls extractor, we only walk over global handles to find global objects.
I'm assuming that a "garbage global object" is the one that is already detached
from roots, right? In this case we wouldn't encounter it, so I don't see a point
in such a test.

Powered by Google App Engine
This is Rietveld 408576698