|
|
Created:
4 years, 2 months ago by Michael Lippautz Modified:
4 years, 2 months ago CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, jochen (gone - plz use gerrit) Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionCreate retainment infos from handles, even for tracing
For object tracing during heap profiling we still need to create retainment
infos to preserve current behavior.
BUG=chromium:468240, chromium:644213
Committed: https://crrev.com/c5b5bae67033e352f8ee94c550bc326cc87a7147
Cr-Commit-Position: refs/heads/master@{#422790}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Comments #Messages
Total messages: 20 (11 generated)
Description was changed from ========== Create retainment infos from handles, even for tracing BUG= ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG= ==========
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG= ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240 ==========
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. Long term, we should only keep m_constructRetainedObjectInfos path if we want to preserve heap profiler behavior. BUG=chromium:468240 ==========
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. Long term, we should only keep m_constructRetainedObjectInfos path if we want to preserve heap profiler behavior. BUG=chromium:468240 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. Long term we should only keep m_constructRetainedObjectInfos path if we want to preserve heap profiler behavior. BUG=chromium:468240 ==========
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. Long term we should only keep m_constructRetainedObjectInfos path if we want to preserve heap profiler behavior. BUG=chromium:468240 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. Long term we should only keep m_constructRetainedObjectInfos path if we want to preserve heap profiler behavior. BUG=chromium:468240 ==========
mlippautz@chromium.org changed reviewers: + haraken@chromium.org, hlopko@chromium.org, hpayer@chromium.org
ptal https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:201: if (node->hasEventListeners()) This branch should also be guarded with m_constructImplicitReferenceGroups. Then the part of the test at https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/inspector... would need to be ripped out since we are not retained by HTMLBodyElement anymore. wdyt? (If we decide to also guard it and change the test I can rewrite this branches in a nicer way.)
https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:201: if (node->hasEventListeners()) On 2016/10/04 10:42:51, Michael Lippautz wrote: > This branch should also be guarded with m_constructImplicitReferenceGroups. > > Then the part of the test at > https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/inspector... > would need to be ripped out since we are not retained by HTMLBodyElement > anymore. > > wdyt? > > (If we decide to also guard it and change the test I can rewrite this branches > in a nicer way.) Sorry for the confusion but if we want to stay compatible this should not be guarded (althouh it creates an implicit ref group) as we also create retainer infos for it (line 207+208).
https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:210: if (m_constructImplicitReferenceGroups) { I'd directly use !RuntimeEnabledFeatures::traceWrappablesEnabled() and avoid introducing an indirection variable like m_constructImplicitReferenceGroups. https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:281: bool constructImplicitReferenceGroups) { constructImplicitReferenceGroups is unused.
https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp (right): https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:210: if (m_constructImplicitReferenceGroups) { On 2016/10/04 11:24:48, haraken wrote: > > I'd directly use !RuntimeEnabledFeatures::traceWrappablesEnabled() and avoid > introducing an indirection variable like m_constructImplicitReferenceGroups. Done. https://codereview.chromium.org/2387373002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp:281: bool constructImplicitReferenceGroups) { On 2016/10/04 11:24:48, haraken wrote: > > constructImplicitReferenceGroups is unused. Done.
LGTM
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. Long term we should only keep m_constructRetainedObjectInfos path if we want to preserve heap profiler behavior. BUG=chromium:468240 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240 ==========
fyi: jochen
The CQ bit was checked by mlippautz@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240,chromium:644213 ==========
Message was sent while issue was closed.
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240,chromium:644213 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240,chromium:644213 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240,chromium:644213 ========== to ========== Create retainment infos from handles, even for tracing For object tracing during heap profiling we still need to create retainment infos to preserve current behavior. BUG=chromium:468240,chromium:644213 Committed: https://crrev.com/c5b5bae67033e352f8ee94c550bc326cc87a7147 Cr-Commit-Position: refs/heads/master@{#422790} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/c5b5bae67033e352f8ee94c550bc326cc87a7147 Cr-Commit-Position: refs/heads/master@{#422790} |