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

Issue 2715493005: Removed MallocHookScope and replaced it with MallocLocker, which behaves like MutexLocker but also … (Closed)

Created:
3 years, 10 months ago by bkonyi
Modified:
3 years, 10 months ago
Reviewers:
zra, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Removed MallocHookScope and replaced it with MallocLocker, which behaves like MutexLocker but also keeps track of which thread current holds the lock using MallocLocker. BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/b19e4990428be2436a63111caef9f5eb6bb06775

Patch Set 1 #

Total comments: 11

Patch Set 2 : Moved initialization of MallocLocker::owner_ to be with the initialization of MallocHooksState vari… #

Patch Set 3 : Removed redundant DISALLOW_COPY_AND_ASSIGN from MallocLocker #

Total comments: 2

Patch Set 4 : Pulled static member out of MallocLocker and into MallocHooksState. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -67 lines) Patch
M runtime/vm/malloc_hooks.cc View 1 2 3 12 chunks +47 lines, -67 lines 0 comments Download
M runtime/vm/os_thread.h View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (2 generated)
bkonyi
3 years, 10 months ago (2017-02-22 21:10:06 UTC) #2
zra
https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc#newcode24 runtime/vm/malloc_hooks.cc:24: class MallocLocker : public ValueObject { This seems generally ...
3 years, 10 months ago (2017-02-22 22:54:55 UTC) #3
bkonyi
https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc#newcode24 runtime/vm/malloc_hooks.cc:24: class MallocLocker : public ValueObject { On 2017/02/22 22:54:54, ...
3 years, 10 months ago (2017-02-22 23:04:27 UTC) #4
siva
https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc#newcode24 runtime/vm/malloc_hooks.cc:24: class MallocLocker : public ValueObject { On 2017/02/22 23:04:26, ...
3 years, 10 months ago (2017-02-22 23:53:04 UTC) #5
bkonyi
https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2715493005/diff/1/runtime/vm/malloc_hooks.cc#newcode24 runtime/vm/malloc_hooks.cc:24: class MallocLocker : public ValueObject { On 2017/02/22 23:53:04, ...
3 years, 10 months ago (2017-02-23 00:28:46 UTC) #6
siva
lgtm with one comment. https://codereview.chromium.org/2715493005/diff/40001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2715493005/diff/40001/runtime/vm/malloc_hooks.cc#newcode44 runtime/vm/malloc_hooks.cc:44: static ThreadId owner_; It might ...
3 years, 10 months ago (2017-02-23 01:46:36 UTC) #7
bkonyi
https://codereview.chromium.org/2715493005/diff/40001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2715493005/diff/40001/runtime/vm/malloc_hooks.cc#newcode44 runtime/vm/malloc_hooks.cc:44: static ThreadId owner_; On 2017/02/23 01:46:36, siva wrote: > ...
3 years, 10 months ago (2017-02-23 02:03:27 UTC) #8
bkonyi
3 years, 10 months ago (2017-02-23 22:45:14 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
b19e4990428be2436a63111caef9f5eb6bb06775 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698