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

Issue 2946753003: Sped up allocateBranchIsland by skipping whole regions of allocated memory. (Closed)

Created:
3 years, 6 months ago by Boris Vidolov
Modified:
3 years, 6 months ago
CC:
chromium-reviews, awong1, brettw
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Speed up allocateBranchIsland by skipping whole regions of allocated memory. BUG=730918 Review-Url: https://codereview.chromium.org/2946753003 Cr-Commit-Position: refs/heads/master@{#481125} Committed: https://chromium.googlesource.com/chromium/src/+/9cea65766cfffee8db51e2f6edb694e0fe10ef93

Patch Set 1 #

Patch Set 2 : Minor comment updates. #

Patch Set 3 : Add a patch file. #

Total comments: 5

Patch Set 4 : Added overflow and underflow detection. #

Total comments: 9

Patch Set 5 : Minor updates to the logic and comments per mmentovai's suggestion. #

Patch Set 6 : Clean up the README file. #

Total comments: 1

Patch Set 7 : Fixing release build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -11 lines) Patch
M third_party/mach_override/README.chromium View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
A third_party/mach_override/chromium.patch View 1 2 3 4 5 6 1 chunk +123 lines, -0 lines 0 comments Download
M third_party/mach_override/mach_override.c View 1 2 3 4 5 6 6 chunks +34 lines, -9 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
Boris Vidolov
Colleagues, please take a look at the change. I would especially appreciate looking into the ...
3 years, 6 months ago (2017-06-19 22:19:52 UTC) #2
Mark Mentovai
In the CL description, write in the present tense (“Speed up” instead of “sped up”). ...
3 years, 6 months ago (2017-06-20 15:46:42 UTC) #3
Boris Vidolov
Thanks, Mark. See my answers and my latest patch. https://codereview.chromium.org/2946753003/diff/40001/third_party/mach_override/mach_override.c File third_party/mach_override/mach_override.c (right): https://codereview.chromium.org/2946753003/diff/40001/third_party/mach_override/mach_override.c#newcode415 third_party/mach_override/mach_override.c:415: ...
3 years, 6 months ago (2017-06-20 18:38:59 UTC) #5
Mark Mentovai
https://codereview.chromium.org/2946753003/diff/40001/third_party/mach_override/mach_override.c File third_party/mach_override/mach_override.c (right): https://codereview.chromium.org/2946753003/diff/40001/third_party/mach_override/mach_override.c#newcode415 third_party/mach_override/mach_override.c:415: vm_address_t first = (uint64_t)originalFunctionAddress - kMaxJumpOffset; Boris Vidolov wrote: ...
3 years, 6 months ago (2017-06-20 18:49:35 UTC) #6
Mark Mentovai
LGTM. https://codereview.chromium.org/2946753003/diff/60001/third_party/mach_override/README.chromium File third_party/mach_override/README.chromium (right): https://codereview.chromium.org/2946753003/diff/60001/third_party/mach_override/README.chromium#newcode3 third_party/mach_override/README.chromium:3: Version: 0 ? Can you put this back ...
3 years, 6 months ago (2017-06-20 20:32:34 UTC) #7
Robert Sesek
LGTM https://codereview.chromium.org/2946753003/diff/60001/third_party/mach_override/mach_override.c File third_party/mach_override/mach_override.c (right): https://codereview.chromium.org/2946753003/diff/60001/third_party/mach_override/mach_override.c#newcode271 third_party/mach_override/mach_override.c:271: // TODO: On 64-bit, move to opcode FF/4 ...
3 years, 6 months ago (2017-06-20 20:54:15 UTC) #8
Mark Mentovai
https://codereview.chromium.org/2946753003/diff/60001/third_party/mach_override/mach_override.c File third_party/mach_override/mach_override.c (right): https://codereview.chromium.org/2946753003/diff/60001/third_party/mach_override/mach_override.c#newcode271 third_party/mach_override/mach_override.c:271: // TODO: On 64-bit, move to opcode FF/4 (jmp ...
3 years, 6 months ago (2017-06-20 21:08:53 UTC) #9
Boris Vidolov
Thanks, Mark and Robert. I updated the code per suggestion, but I could not restore ...
3 years, 6 months ago (2017-06-21 00:02:21 UTC) #10
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/2946753003/80001
3 years, 6 months ago (2017-06-21 00:02:54 UTC) #13
Mark Mentovai
On 2017/06/21 00:02:21, Boris Vidolov wrote: > Thanks, Mark and Robert. I updated the code ...
3 years, 6 months ago (2017-06-21 00:04:36 UTC) #14
Boris Vidolov
On 2017/06/21 00:04:36, Mark Mentovai wrote: > On 2017/06/21 00:02:21, Boris Vidolov wrote: > > ...
3 years, 6 months ago (2017-06-21 00:19:40 UTC) #16
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/2946753003/100001
3 years, 6 months ago (2017-06-21 00:20:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/481918)
3 years, 6 months ago (2017-06-21 00:42:13 UTC) #21
Mark Mentovai
https://codereview.chromium.org/2946753003/diff/100001/third_party/mach_override/mach_override.c File third_party/mach_override/mach_override.c (right): https://codereview.chromium.org/2946753003/diff/100001/third_party/mach_override/mach_override.c#newcode277 third_party/mach_override/mach_override.c:277: assert(addressOffset64 == addressOffset); Ah, yes, asserts compile to nothing ...
3 years, 6 months ago (2017-06-21 03:38:24 UTC) #22
Boris Vidolov
On 2017/06/21 03:38:24, Mark Mentovai wrote: > https://codereview.chromium.org/2946753003/diff/100001/third_party/mach_override/mach_override.c > File third_party/mach_override/mach_override.c (right): > > https://codereview.chromium.org/2946753003/diff/100001/third_party/mach_override/mach_override.c#newcode277 ...
3 years, 6 months ago (2017-06-21 04:00:26 UTC) #23
Boris Vidolov
3 years, 6 months ago (2017-06-21 04:02:18 UTC) #24
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/2946753003/120001
3 years, 6 months ago (2017-06-21 06:15:48 UTC) #27
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 06:39:03 UTC) #30
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/9cea65766cfffee8db51e2f6edb6...

Powered by Google App Engine
This is Rietveld 408576698