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

Issue 1645763004: blink_gc_plugin: Make RecordInfo::Get{Fields,Bases} return deterministic order (Closed)

Created:
4 years, 10 months ago by hans
Modified:
4 years, 10 months ago
Reviewers:
sof, Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blink_gc_plugin: Make RecordInfo::Get{Fields,Bases} return deterministic order Tests are failing on the Windows bots because diagnostics get emitted in non-deterministic order. This is a follow-up to https://codereview.chromium.org/1645613003/ which fixed one instance, but there were several more. This should fix it for real by storing bases in a std::vector and using a SourceLocation-based comparator for the fields map. BUG=581782 R=sigbjornf@opera.com, thakis@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/8734904e17cdd88103ffce6f9da1473f48e24b45

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use a custom comparator for the map instead #

Patch Set 3 : Revert the old fix attempt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -18 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp View 2 1 chunk +11 lines, -15 lines 0 comments Download
M tools/clang/blink_gc_plugin/RecordInfo.h View 1 1 chunk +9 lines, -2 lines 0 comments Download
M tools/clang/blink_gc_plugin/RecordInfo.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
hans
Please take a look.
4 years, 10 months ago (2016-01-29 03:00:52 UTC) #2
Nico
I'm fine with this as-is, but let's see what sof says. https://codereview.chromium.org/1645763004/diff/1/tools/clang/blink_gc_plugin/RecordInfo.h File tools/clang/blink_gc_plugin/RecordInfo.h (left): ...
4 years, 10 months ago (2016-01-29 03:10:08 UTC) #3
hans
https://codereview.chromium.org/1645763004/diff/1/tools/clang/blink_gc_plugin/RecordInfo.h File tools/clang/blink_gc_plugin/RecordInfo.h (left): https://codereview.chromium.org/1645763004/diff/1/tools/clang/blink_gc_plugin/RecordInfo.h#oldcode72 tools/clang/blink_gc_plugin/RecordInfo.h:72: typedef std::map<clang::CXXRecordDecl*, BasePoint> Bases; On 2016/01/29 03:10:08, Nico wrote: ...
4 years, 10 months ago (2016-01-29 04:49:14 UTC) #4
sof
https://codereview.chromium.org/1645763004/diff/1/tools/clang/blink_gc_plugin/RecordInfo.h File tools/clang/blink_gc_plugin/RecordInfo.h (left): https://codereview.chromium.org/1645763004/diff/1/tools/clang/blink_gc_plugin/RecordInfo.h#oldcode72 tools/clang/blink_gc_plugin/RecordInfo.h:72: typedef std::map<clang::CXXRecordDecl*, BasePoint> Bases; On 2016/01/29 04:49:14, hans wrote: ...
4 years, 10 months ago (2016-01-29 09:00:19 UTC) #5
hans
On 2016/01/29 09:00:19, sof wrote: > What you propose makes the most sense to me, ...
4 years, 10 months ago (2016-01-29 17:59:47 UTC) #6
Nico
lgtm
4 years, 10 months ago (2016-01-29 18:08:07 UTC) #7
Nico
(update cl description before hitting cq)
4 years, 10 months ago (2016-01-29 18:08:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645763004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645763004/20001
4 years, 10 months ago (2016-01-29 18:11:52 UTC) #13
sof
lgtm Do you plan to revert https://codereview.chromium.org/1645613003/ ?
4 years, 10 months ago (2016-01-29 18:19:32 UTC) #14
hans
On 2016/01/29 18:19:32, sof wrote: > Do you plan to revert https://codereview.chromium.org/1645613003/ ? Yes, thanks ...
4 years, 10 months ago (2016-01-29 18:29:46 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8734904e17cdd88103ffce6f9da1473f48e24b45 Cr-Commit-Position: refs/heads/master@{#372387}
4 years, 10 months ago (2016-01-29 18:43:21 UTC) #18
hans
Committed patchset #3 (id:40001) manually as 8734904e17cdd88103ffce6f9da1473f48e24b45 (presubmit successful).
4 years, 10 months ago (2016-01-29 18:44:24 UTC) #20
sof
4 years, 10 months ago (2016-02-06 08:10:22 UTC) #21
Message was sent while issue was closed.
On 2016/01/29 18:29:46, hans wrote:
> On 2016/01/29 18:19:32, sof wrote:
> > Do you plan to revert https://codereview.chromium.org/1645613003/ ?
> 
> Yes, thanks for the reminder :-)

You're welcome... ;)

Powered by Google App Engine
This is Rietveld 408576698