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

Issue 10828054: Modify allocator_shim to support _aligned_alloc(), _aligned_free(). (Closed)

Created:
8 years, 4 months ago by DaleCurtis
Modified:
8 years, 4 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Modify allocator_shim to support _aligned_alloc(), _aligned_free(). As titled, pipes the Windows specific methods to the appropriate internal allocators. BUG=none TEST=manual test with each allocator over various alignments. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149537

Patch Set 1 #

Patch Set 2 : Unit tests. #

Total comments: 8

Patch Set 3 : Comments. Fix license. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix line endings. #

Patch Set 6 : Land jemalloc.c change separately. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -1 line) Patch
base/allocator/allocator_shim.cc View 1 2 2 chunks +61 lines, -0 lines 0 comments Download
M base/allocator/allocator_unittests.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M base/allocator/win_allocator.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
third_party/jemalloc/README.chromium View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
DaleCurtis
Jim, PTAL. This is the implementation on what you suggested via email. I'm not sure ...
8 years, 4 months ago (2012-07-27 18:32:25 UTC) #1
DaleCurtis
+sgk for jemalloc change. Upstream has diverged significantly since the 2009 version of the code ...
8 years, 4 months ago (2012-07-27 19:50:19 UTC) #2
DaleCurtis
jar: Ping? Should I find another reviewer?
8 years, 4 months ago (2012-07-30 22:21:14 UTC) #3
jar (doing other things)
http://codereview.chromium.org/10828054/diff/5/base/allocator/allocator_unittests.cc File base/allocator/allocator_unittests.cc (right): http://codereview.chromium.org/10828054/diff/5/base/allocator/allocator_unittests.cc#newcode487 base/allocator/allocator_unittests.cc:487: for (int size = 1; size < 1048576; size ...
8 years, 4 months ago (2012-07-30 23:04:21 UTC) #4
DaleCurtis
Thanks for the review! PTAL. http://codereview.chromium.org/10828054/diff/5/base/allocator/allocator_unittests.cc File base/allocator/allocator_unittests.cc (right): http://codereview.chromium.org/10828054/diff/5/base/allocator/allocator_unittests.cc#newcode487 base/allocator/allocator_unittests.cc:487: for (int size = ...
8 years, 4 months ago (2012-07-31 00:44:22 UTC) #5
jar (doing other things)
note: sgk is not working on Chrome anymore. http://codereview.chromium.org/10828054/diff/5/base/allocator/win_allocator.cc File base/allocator/win_allocator.cc (right): http://codereview.chromium.org/10828054/diff/5/base/allocator/win_allocator.cc#newcode51 base/allocator/win_allocator.cc:51: // ...
8 years, 4 months ago (2012-07-31 03:18:51 UTC) #6
DaleCurtis
-sgk then. Do you know if anyone is using JEMalloc now? I just pulled sgk ...
8 years, 4 months ago (2012-07-31 03:39:48 UTC) #7
jar (doing other things)
lgtm
8 years, 4 months ago (2012-08-01 21:33:51 UTC) #8
DaleCurtis
On 2012/08/01 21:33:51, jar wrote: > lgtm Thanks Jim! CQ'ing.
8 years, 4 months ago (2012-08-01 21:46:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10828054/6002
8 years, 4 months ago (2012-08-01 21:46:48 UTC) #10
commit-bot: I haz the power
Failed to apply patch for third_party/jemalloc/README.chromium: While running patch -p1 --forward --force; patching file third_party/jemalloc/README.chromium ...
8 years, 4 months ago (2012-08-01 21:46:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10828054/9003
8 years, 4 months ago (2012-08-01 22:14:54 UTC) #12
commit-bot: I haz the power
Failed to apply patch for third_party/jemalloc/chromium/jemalloc.c: While running patch -p1 --forward --force; patching file third_party/jemalloc/chromium/jemalloc.c ...
8 years, 4 months ago (2012-08-01 22:14:56 UTC) #13
DaleCurtis
On 2012/08/01 22:14:56, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
8 years, 4 months ago (2012-08-01 22:32:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10828054/10013
8 years, 4 months ago (2012-08-01 22:33:41 UTC) #15
jar (doing other things)
re: je-malloc Truth be known... we almost never use anything other than TCMalloc in the ...
8 years, 4 months ago (2012-08-01 22:40:12 UTC) #16
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 00:00:24 UTC) #17
Change committed as 149537

Powered by Google App Engine
This is Rietveld 408576698