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

Issue 192933002: Check that classes with non-trivial destructors have finalization support. (Closed)

Created:
6 years, 9 months ago by zerny-chromium
Modified:
6 years, 9 months ago
CC:
chromium-reviews, oilpan-reviews
Visibility:
Public.

Description

Check that classes with non-trivial destructors have finalization support. Uses clang's notion of when a class has a 'trivial destructor' to determine when garbage-collected types need finalization. BUG=334149 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257072

Patch Set 1 #

Patch Set 2 : comments and rebase #

Patch Set 3 : mixin support #

Total comments: 4

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -76 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 1 2 3 10 chunks +92 lines, -41 lines 0 comments Download
M tools/clang/blink_gc_plugin/Edge.h View 11 chunks +14 lines, -2 lines 0 comments Download
M tools/clang/blink_gc_plugin/Edge.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/RecordInfo.h View 1 2 3 chunks +17 lines, -3 lines 0 comments Download
M tools/clang/blink_gc_plugin/RecordInfo.cpp View 1 2 6 chunks +47 lines, -14 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_base.h View 1 chunk +36 lines, -0 lines 0 comments Download
A + tools/clang/blink_gc_plugin/tests/class_requires_finalization_base.cpp View 1 chunk +5 lines, -6 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_base.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.h View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.cpp View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_field.txt View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.cpp View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/destructor_in_nonfinalized_class.txt View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/heap/stubs.h View 1 2 3 chunks +42 lines, -5 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/own_ptr_to_gc_managed_class.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/own_ptr_to_gc_managed_class.txt View 1 chunk +1 line, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.txt View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
zerny-chromium
Ready for review. PTAL.
6 years, 9 months ago (2014-03-12 16:22:49 UTC) #1
zerny-chromium
This is the plugin side change of CL: https://codereview.chromium.org/189543014/
6 years, 9 months ago (2014-03-12 16:23:28 UTC) #2
Vyacheslav Egorov (Chromium)
lgtm https://codereview.chromium.org/192933002/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp File tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp (right): https://codereview.chromium.org/192933002/diff/40001/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp#newcode45 tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp:45: "[blink-gc] Non-finalized class %0 requires finalization."; I would ...
6 years, 9 months ago (2014-03-12 18:24:24 UTC) #3
zerny-chromium
Thanks for the review Slava. Nico: would you like me to hold out on pushing ...
6 years, 9 months ago (2014-03-13 09:32:21 UTC) #4
Nico
On Thu, Mar 13, 2014 at 2:32 AM, <zerny@chromium.org> wrote: > Thanks for the review ...
6 years, 9 months ago (2014-03-13 16:11:55 UTC) #5
zerny-chromium
The CQ bit was checked by zerny@chromium.org
6 years, 9 months ago (2014-03-14 06:15:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zerny@chromium.org/192933002/60001
6 years, 9 months ago (2014-03-14 06:16:53 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 07:39:49 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-14 07:39:50 UTC) #9
zerny-chromium
The CQ bit was checked by zerny@chromium.org
6 years, 9 months ago (2014-03-14 10:44:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zerny@chromium.org/192933002/60001
6 years, 9 months ago (2014-03-14 10:44:19 UTC) #11
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 10:45:16 UTC) #12
Message was sent while issue was closed.
Change committed as 257072

Powered by Google App Engine
This is Rietveld 408576698