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

Issue 2343643003: binding: Makes assertion of adjustAmountOfExternalAllocatedMemory more exact. (Closed)

Created:
4 years, 3 months ago by Yuki
Modified:
4 years, 2 months ago
Reviewers:
haraken, peria
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, blink-reviews-bindings_chromium.org, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Makes assertion of adjustAmountOfExternalAllocatedMemory more exact. 1) Makes sure that ABC::s_adjustAoEAM is initialized before its use. 2) Makes the assertion in adjustAoEAM thread-safe. BUG=638069 Committed: https://crrev.com/1851a7c26bc46902c7f62de0bcabf774911596c0 Cr-Commit-Position: refs/heads/master@{#422396}

Patch Set 1 #

Patch Set 2 : Uses ThreadSpecific. #

Patch Set 3 : Detects a race. #

Patch Set 4 : Synced. #

Patch Set 5 : Synced. #

Patch Set 6 : Give it a try a process-wide check. #

Patch Set 7 : Synced. #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : Synced. #

Patch Set 14 : . #

Patch Set 15 : . #

Total comments: 8

Patch Set 16 : Synced. #

Patch Set 17 : Factor it out to checkIfAAOEAMIsConsistent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -23 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +31 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +26 lines, -10 lines 0 comments Download

Messages

Total messages: 99 (71 generated)
Yuki
Could you review this CL? I don't see any problem about where we should adjust. ...
4 years, 3 months ago (2016-09-14 13:35:22 UTC) #4
haraken
On 2016/09/14 13:35:22, Yuki wrote: > Could you review this CL? > > I don't ...
4 years, 3 months ago (2016-09-14 14:43:46 UTC) #5
Yuki
Could you take another look?
4 years, 3 months ago (2016-09-15 13:13:49 UTC) #10
haraken
LGTM
4 years, 3 months ago (2016-09-15 13:57:07 UTC) #11
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/2343643003/20001
4 years, 3 months ago (2016-09-15 14:24:46 UTC) #14
peria
I agree that this CL does (2) in the description, but I think it does ...
4 years, 3 months ago (2016-09-15 14:40:44 UTC) #16
Yuki
I was lazy. Updated.
4 years, 3 months ago (2016-09-15 14:57:13 UTC) #21
peria
I'm sorry for the late reply. although some tests still fail, code itself LGTM.
4 years, 3 months ago (2016-09-20 07:35:52 UTC) #28
Yuki
There seems a case that an ArrayBuffer created in a thread is passed over to ...
4 years, 2 months ago (2016-09-30 13:58:25 UTC) #71
haraken
https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode119 third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h:119: s_lastUsedAdjustAmountOfExternalAllocatedMemoryFunction); Sorry, what is this DCHECK checking?
4 years, 2 months ago (2016-09-30 14:12:51 UTC) #72
Yuki
https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode119 third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h:119: s_lastUsedAdjustAmountOfExternalAllocatedMemoryFunction); On 2016/09/30 14:12:51, haraken wrote: > > Sorry, ...
4 years, 2 months ago (2016-09-30 14:16:11 UTC) #73
haraken
https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode119 third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h:119: s_lastUsedAdjustAmountOfExternalAllocatedMemoryFunction); On 2016/09/30 14:16:11, Yuki wrote: > On 2016/09/30 ...
4 years, 2 months ago (2016-09-30 14:21:40 UTC) #74
Yuki
https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode119 third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h:119: s_lastUsedAdjustAmountOfExternalAllocatedMemoryFunction); On 2016/09/30 14:21:39, haraken wrote: > On 2016/09/30 ...
4 years, 2 months ago (2016-09-30 14:27:26 UTC) #75
haraken
On 2016/09/30 14:27:26, Yuki wrote: > https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h > File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): > > https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode119 > ...
4 years, 2 months ago (2016-10-03 01:52:11 UTC) #76
Yuki
On 2016/10/03 01:52:11, haraken wrote: > On 2016/09/30 14:27:26, Yuki wrote: > > > https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h ...
4 years, 2 months ago (2016-10-03 05:09:41 UTC) #77
haraken
On 2016/10/03 05:09:41, Yuki wrote: > On 2016/10/03 01:52:11, haraken wrote: > > On 2016/09/30 ...
4 years, 2 months ago (2016-10-03 05:13:09 UTC) #78
peria
https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode112 third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h:112: DCHECK(s_adjustAmountOfExternalAllocatedMemoryFunction); s_adjustAOEAMF is initialized with a non null function ...
4 years, 2 months ago (2016-10-03 05:43:49 UTC) #79
Yuki
On 2016/10/03 05:13:09, haraken wrote: > On 2016/10/03 05:09:41, Yuki wrote: > > On 2016/10/03 ...
4 years, 2 months ago (2016-10-03 05:49:56 UTC) #80
Yuki
https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode112 third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h:112: DCHECK(s_adjustAmountOfExternalAllocatedMemoryFunction); On 2016/10/03 05:43:49, peria wrote: > s_adjustAOEAMF is ...
4 years, 2 months ago (2016-10-03 05:53:26 UTC) #81
haraken
On 2016/10/03 05:49:56, Yuki wrote: > On 2016/10/03 05:13:09, haraken wrote: > > On 2016/10/03 ...
4 years, 2 months ago (2016-10-03 06:04:34 UTC) #82
peria
On 2016/10/03 05:53:26, Yuki wrote: > https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h > File third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h (right): > > https://codereview.chromium.org/2343643003/diff/280001/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h#newcode112 > ...
4 years, 2 months ago (2016-10-03 06:15:08 UTC) #83
Yuki
On 2016/10/03 06:04:34, haraken wrote: > > Yes, platform/graphics/ is using. It's not strange. platform/ ...
4 years, 2 months ago (2016-10-03 07:37:37 UTC) #86
haraken
On 2016/10/03 07:37:37, Yuki wrote: > On 2016/10/03 06:04:34, haraken wrote: > > > Yes, ...
4 years, 2 months ago (2016-10-03 07:46:24 UTC) #87
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/2343643003/320001
4 years, 2 months ago (2016-10-03 08:00:09 UTC) #91
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/306962)
4 years, 2 months ago (2016-10-03 08:46:41 UTC) #93
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/2343643003/320001
4 years, 2 months ago (2016-10-03 08:47:50 UTC) #95
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 2 months ago (2016-10-03 09:45:28 UTC) #97
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 09:47:26 UTC) #99
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/1851a7c26bc46902c7f62de0bcabf774911596c0
Cr-Commit-Position: refs/heads/master@{#422396}

Powered by Google App Engine
This is Rietveld 408576698