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

Issue 2955493002: Allocate the profiler sample buffer and zone segments with virtual memory instead of malloc. (Closed)

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

Description

Allocate the profiler sample buffer and zone segments with virtual memory instead of malloc. Allows naming their memory regions. Add check for failed sample buffer allocation. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/881bf0153475f1edae6ee821aef39556df53f43c

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : . #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -18 lines) Patch
M runtime/vm/heap.cc View 1 2 1 chunk +15 lines, -3 lines 0 comments Download
M runtime/vm/profiler.h View 1 2 chunks +2 lines, -9 lines 0 comments Download
M runtime/vm/profiler.cc View 1 2 3 4 1 chunk +19 lines, -6 lines 0 comments Download
M runtime/vm/virtual_memory_fuchsia.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
rmacnak
3 years, 6 months ago (2017-06-22 22:58:43 UTC) #4
zra
LGTM! https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/profiler.cc#newcode133 runtime/vm/profiler.cc:133: intptr_t size = Utils::RoundUp(capacity * Sample::instance_size(), const
3 years, 6 months ago (2017-06-23 04:43:41 UTC) #5
zra
Thinking about this more, we should probably check that the Zones change doesn't cause any ...
3 years, 6 months ago (2017-06-23 05:06:19 UTC) #6
rmacnak
On 2017/06/23 05:06:19, zra wrote: > Thinking about this more, we should probably check that ...
3 years, 6 months ago (2017-06-23 21:03:17 UTC) #7
rmacnak
https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/profiler.cc#newcode133 runtime/vm/profiler.cc:133: intptr_t size = Utils::RoundUp(capacity * Sample::instance_size(), On 2017/06/23 04:43:41, ...
3 years, 6 months ago (2017-06-23 21:05:52 UTC) #8
rmacnak
Committed patchset #5 (id:80001) manually as 881bf0153475f1edae6ee821aef39556df53f43c (presubmit successful).
3 years, 6 months ago (2017-06-23 21:06:49 UTC) #10
zra
https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/zone.cc File runtime/vm/zone.cc (right): https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/zone.cc#newcode26 runtime/vm/zone.cc:26: uword end() { return address(size()); } Should this be ...
3 years, 5 months ago (2017-06-26 20:30:00 UTC) #11
rmacnak
3 years, 5 months ago (2017-06-26 20:44:43 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/zone.cc
File runtime/vm/zone.cc (right):

https://codereview.chromium.org/2955493002/diff/40001/runtime/vm/zone.cc#newc...
runtime/vm/zone.cc:26: uword end() { return address(size()); }
On 2017/06/26 20:30:00, zra wrote:
> Should this be address(size() - sizeof(Segment))?

Hm, the size() calculate should exclude the Segement header.

The zone changes were removed from this CL before landing, although I forgot to
update the commit message to reflect this.

Powered by Google App Engine
This is Rietveld 408576698