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

Issue 2902563002: blink_gc_plugin: disallow WeakMember<> fields in off-heap objects. (Closed)

Created:
3 years, 7 months ago by sof
Modified:
3 years, 7 months ago
CC:
chromium-reviews, hans
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

blink_gc_plugin: disallow WeakMember<> fields in off-heap objects. Add missing check for WeakMember<> fields in non-managed classes; not permitted just like Member<>. R=dcheng,haraken BUG=724418 Review-Url: https://codereview.chromium.org/2902563002 Cr-Commit-Position: refs/heads/master@{#474368} Committed: https://chromium.googlesource.com/chromium/src/+/55a04e9c19f6754fad6f509cf6854dd35c896071

Patch Set 1 #

Patch Set 2 : style #

Patch Set 3 : default enable check, but offer a bailout flag for disabling #

Patch Set 4 : add missing file from ps#3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -14 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/BlinkGCPluginOptions.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/CheckFieldsVisitor.h View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp View 1 2 3 chunks +11 lines, -6 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/member_in_offheap_class.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/member_in_offheap_class.txt View 1 2 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
sof
please take a look. Depends on https://crbug.com/724418#c6 being addressed (the only place where this WeakMember<> ...
3 years, 7 months ago (2017-05-22 18:48:09 UTC) #6
dcheng
LGTM
3 years, 7 months ago (2017-05-22 21:25:49 UTC) #9
haraken
LGTM
3 years, 7 months ago (2017-05-22 23:57:24 UTC) #10
sof
Great, thanks for doing https://chromium-review.googlesource.com/509149 right away. I suggest we land this blink GC plugin ...
3 years, 7 months ago (2017-05-23 05:52:58 UTC) #11
dcheng
On 2017/05/23 05:52:58, sof wrote: > Great, thanks for doing https://chromium-review.googlesource.com/509149 right > away. > ...
3 years, 7 months ago (2017-05-23 06:19:10 UTC) #12
sof
I would agree with that (land enabled, but watch out for the next roll), but ...
3 years, 7 months ago (2017-05-23 06:57:36 UTC) #13
Nico
If you're very confident that this won't regress in the next few weeks, you can ...
3 years, 7 months ago (2017-05-23 14:11:36 UTC) #14
sof
On 2017/05/23 14:11:36, Nico wrote: > If you're very confident that this won't regress in ...
3 years, 7 months ago (2017-05-23 21:06:46 UTC) #15
dcheng
lgtm
3 years, 7 months ago (2017-05-24 00:24:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902563002/60001
3 years, 7 months ago (2017-05-24 18:30:38 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 18:37:36 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/55a04e9c19f6754fad6f509cf685...

Powered by Google App Engine
This is Rietveld 408576698