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

Issue 51693002: GN: toolchain threading cleanup (Closed)

Created:
7 years, 1 month ago by brettw
Modified:
7 years, 1 month ago
Reviewers:
scottmg
CC:
chromium-reviews
Visibility:
Public.

Description

GN: toolchain threading cleanup Remove the thread-unsafe toolchain pointer on the otherwise-threadsafe Settings object. I replaced it with the toolchain label, and moved the is_default flag from the toolchain to the Settings object. This required that I pass the toolchain around in a few more places, but also simplifies some other cases. I removed the toolchain prefix from Ninja rules for the default toolchain since that's not necessary any more for GYP compat. This fixes an annoying double-free in the toolchain manager. I think my current refactor will clean this up in a later phase. R=scottmg@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232657 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232755

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -156 lines) Patch
M tools/gn/config.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/config.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/gn/function_exec_script.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/function_toolchain.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/functions.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/gyp_helper.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/gn/input_conversion.cc View 1 chunk +1 line, -3 lines 0 comments Download
M tools/gn/item.h View 3 chunks +5 lines, -1 line 0 comments Download
M tools/gn/item.cc View 1 chunk +3 lines, -1 line 0 comments Download
M tools/gn/ninja_binary_target_writer.h View 1 chunk +3 lines, -1 line 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 6 chunks +6 lines, -7 lines 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/ninja_copy_target_writer.h View 1 chunk +3 lines, -1 line 0 comments Download
M tools/gn/ninja_copy_target_writer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/gn/ninja_copy_target_writer_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M tools/gn/ninja_group_target_writer.h View 1 chunk +3 lines, -1 line 0 comments Download
M tools/gn/ninja_group_target_writer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/gn/ninja_helper.h View 1 chunk +1 line, -2 lines 0 comments Download
M tools/gn/ninja_helper.cc View 1 chunk +7 lines, -10 lines 0 comments Download
M tools/gn/ninja_helper_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M tools/gn/ninja_script_target_writer.h View 1 chunk +3 lines, -1 line 0 comments Download
M tools/gn/ninja_script_target_writer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/gn/ninja_script_target_writer_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/ninja_target_writer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M tools/gn/ninja_target_writer.cc View 5 chunks +13 lines, -10 lines 0 comments Download
M tools/gn/ninja_toolchain_writer.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M tools/gn/scope_per_file_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/scope_per_file_provider_unittest.cc View 1 2 chunks +13 lines, -17 lines 0 comments Download
M tools/gn/settings.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M tools/gn/settings.cc View 1 chunk +1 line, -2 lines 0 comments Download
M tools/gn/setup.h View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/setup.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/gn/target.h View 2 chunks +0 lines, -3 lines 0 comments Download
M tools/gn/target.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M tools/gn/target_unittest.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M tools/gn/test_with_scope.h View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/test_with_scope.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M tools/gn/toolchain.h View 3 chunks +1 line, -5 lines 0 comments Download
M tools/gn/toolchain.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/toolchain_manager.cc View 10 chunks +28 lines, -21 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
brettw
7 years, 1 month ago (2013-10-29 23:41:39 UTC) #1
scottmg
lgtm
7 years, 1 month ago (2013-10-31 20:38:46 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/51693002/40001
7 years, 1 month ago (2013-11-02 20:57:30 UTC) #3
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=34143
7 years, 1 month ago (2013-11-02 21:15:37 UTC) #4
brettw
Committed patchset #2 manually as r232657 (presubmit successful).
7 years, 1 month ago (2013-11-03 04:35:56 UTC) #5
brettw
7 years, 1 month ago (2013-11-04 19:20:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r232755 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698