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

Issue 1887703004: Fix header map nextPowerOf2 method. (Closed)

Created:
4 years, 8 months ago by justincohen
Modified:
4 years, 8 months ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

Fix header map nextPowerOf2 method. Ensure that capacity is always the next power of two over count. This fixes a bug where capacity and count could be equal if count was already a power of two. BUG=603210 R=sdefresne@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/db72e9fcf55ba9d8089f0bc7e447180f8972b5c0

Patch Set 1 #

Patch Set 2 : Better fix #

Patch Set 3 : Add second header (so it's a power of two) #

Total comments: 2

Patch Set 4 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -1 line) Patch
M pylib/gyp/mac_tool.py View 1 1 chunk +1 line, -1 line 0 comments Download
M test/ios/framework/framework.gyp View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A test/ios/framework/iOSFramework/Thing.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A test/ios/framework/iOSFramework/Thing.m View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M test/ios/framework/iOSFramework/iOSFramework.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M test/ios/gyptest-framework.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
justincohen
Scott, can you re-patch in this CL to confirm it still works for you. This ...
4 years, 8 months ago (2016-04-14 14:16:34 UTC) #3
sdefresne
On 2016/04/14 at 14:16:34, justincohen wrote: > Scott, can you re-patch in this CL to ...
4 years, 8 months ago (2016-04-14 14:19:48 UTC) #4
Justin Cohen (wrong one)
Added second file to test so the compiled framework has a power of 2 number ...
4 years, 8 months ago (2016-04-14 15:47:53 UTC) #6
nicholss
I confirm that this change also fixed my build issue for a framework that pulls ...
4 years, 8 months ago (2016-04-14 16:42:44 UTC) #7
sdefresne
lgtm https://codereview.chromium.org/1887703004/diff/40001/test/ios/framework/framework.gyp File test/ios/framework/framework.gyp (right): https://codereview.chromium.org/1887703004/diff/40001/test/ios/framework/framework.gyp#newcode12 test/ios/framework/framework.gyp:12: 'iOSFramework/iOSFramework.h', Can you add a comment here saying ...
4 years, 8 months ago (2016-04-14 21:31:13 UTC) #8
Justin Cohen (wrong one)
https://codereview.chromium.org/1887703004/diff/40001/test/ios/framework/framework.gyp File test/ios/framework/framework.gyp (right): https://codereview.chromium.org/1887703004/diff/40001/test/ios/framework/framework.gyp#newcode12 test/ios/framework/framework.gyp:12: 'iOSFramework/iOSFramework.h', On 2016/04/14 21:31:13, sdefresne wrote: > Can you ...
4 years, 8 months ago (2016-04-18 14:18:46 UTC) #9
justincohen
4 years, 8 months ago (2016-04-18 14:36:58 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
db72e9fcf55ba9d8089f0bc7e447180f8972b5c0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698