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

Issue 430213003: Blink GC plugin: Require that fields are actually traced by the visitor and identify tracing of dep… (Closed)

Created:
6 years, 4 months ago by zerny-chromium
Modified:
6 years, 4 months ago
Reviewers:
haraken
CC:
chromium-reviews, oilpan-reviews
Project:
chromium
Visibility:
Public.

Description

Blink GC plugin: Require that fields are actually traced by the visitor and identify tracing of dependently-templated base classes. Prior to this we only required that fields occurred within the trace method. Thus we would accept seemingly correct code such as: m_foo->trace(visitor) which can result in a dangling pointer. BUG=395036, 334149 R=haraken@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287310

Patch Set 1 #

Total comments: 1

Patch Set 2 : CR #

Patch Set 3 : TraceIfNeeded support #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -62 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 1 2 4 chunks +209 lines, -55 lines 0 comments Download
M tools/clang/blink_gc_plugin/Config.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/class_requires_finalization_base.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/fields_require_tracing.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/heap/stubs.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/trace_if_needed.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + tools/clang/blink_gc_plugin/tests/trace_if_needed.cpp View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/trace_if_needed.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/trace_templated_super.h View 1 chunk +47 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/trace_templated_super.cpp View 1 chunk +36 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/trace_templated_super.txt View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
zerny-chromium
I've implemented stronger checks for tracing of fields and updated to support templated base classes. ...
6 years, 4 months ago (2014-07-31 14:58:05 UTC) #1
haraken
LGTM I don't fully understand special-casings in this CL, but this is just a plugin ...
6 years, 4 months ago (2014-07-31 15:37:11 UTC) #2
zerny-chromium
The CQ bit was checked by zerny@chromium.org
6 years, 4 months ago (2014-08-01 07:08:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zerny@chromium.org/430213003/20001
6 years, 4 months ago (2014-08-01 07:10:54 UTC) #4
zerny-chromium
The CQ bit was unchecked by zerny@chromium.org
6 years, 4 months ago (2014-08-01 07:28:47 UTC) #5
zerny-chromium
Thanks for the reviews. Now that a field occurrence is not sufficient we need to ...
6 years, 4 months ago (2014-08-01 10:34:01 UTC) #6
zerny-chromium
Updated with support for TraceIfNeeded and tried to clean up the code a bit. PTAL
6 years, 4 months ago (2014-08-04 07:37:28 UTC) #7
haraken
LGTM
6 years, 4 months ago (2014-08-04 08:12:50 UTC) #8
zerny-chromium
The CQ bit was checked by zerny@chromium.org
6 years, 4 months ago (2014-08-04 08:35:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zerny@chromium.org/430213003/40001
6 years, 4 months ago (2014-08-04 08:36:04 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-04 09:52:13 UTC) #11
Message was sent while issue was closed.
Change committed as 287310

Powered by Google App Engine
This is Rietveld 408576698