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

Issue 2762323002: Reimplemented zone memory tracking to avoid race conditions that were causing crashes in the previo… (Closed)

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

Description

Reimplemented zone memory tracking to avoid race conditions that were causing crashes in the previous implementation and made some minor name changes. BUG= R=asiva@google.com, johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/c0511ad2ef920518513b986e16735bf9c158aeb8

Patch Set 1 #

Patch Set 2 : Reimplemented zone memory tracking to avoid race conditions that were causing crashes in the previo… #

Total comments: 12

Patch Set 3 : Created helpers for Increment/Decrement Capacity/Usage #

Patch Set 4 : Removed zone usage tracking. #

Total comments: 1

Patch Set 5 : Final change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -261 lines) Patch
M runtime/observatory/lib/src/elements/isolate_view.dart View 1 2 3 2 chunks +13 lines, -54 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/isolate.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/thread.dart View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 4 chunks +12 lines, -13 lines 0 comments Download
M runtime/observatory/tests/service/get_zone_memory_info_rpc_test.dart View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M runtime/vm/dart_api_state.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/json_stream.h View 2 chunks +0 lines, -2 lines 0 comments Download
M runtime/vm/json_stream.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M runtime/vm/service.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/thread.h View 1 2 3 4 chunks +13 lines, -13 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 3 2 chunks +14 lines, -14 lines 0 comments Download
M runtime/vm/zone.h View 1 2 3 4 5 chunks +4 lines, -8 lines 0 comments Download
M runtime/vm/zone.cc View 1 2 3 4 8 chunks +43 lines, -49 lines 0 comments Download
M runtime/vm/zone_test.cc View 1 2 5 chunks +6 lines, -65 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
bkonyi
3 years, 9 months ago (2017-03-21 20:41:15 UTC) #2
Cutch
lgtm
3 years, 9 months ago (2017-03-21 20:51:57 UTC) #3
bkonyi
With Realloc double-count fix.
3 years, 9 months ago (2017-03-22 17:14:45 UTC) #4
Cutch
Final round of comments. https://codereview.chromium.org/2762323002/diff/20001/runtime/vm/zone.cc File runtime/vm/zone.cc (right): https://codereview.chromium.org/2762323002/diff/20001/runtime/vm/zone.cc#newcode50 runtime/vm/zone.cc:50: current_thread->DecrementMemoryCapacity(current->size()); ditto here: IncrementThreadMemoryCapacity / ...
3 years, 9 months ago (2017-03-22 17:21:50 UTC) #5
siva
DBC https://codereview.chromium.org/2762323002/diff/20001/runtime/vm/thread_test.cc File runtime/vm/thread_test.cc (right): https://codereview.chromium.org/2762323002/diff/20001/runtime/vm/thread_test.cc#newcode334 runtime/vm/thread_test.cc:334: } How did the current_thread get into the ...
3 years, 9 months ago (2017-03-22 17:50:55 UTC) #7
bkonyi
https://codereview.chromium.org/2762323002/diff/20001/runtime/vm/thread_test.cc File runtime/vm/thread_test.cc (right): https://codereview.chromium.org/2762323002/diff/20001/runtime/vm/thread_test.cc#newcode334 runtime/vm/thread_test.cc:334: } On 2017/03/22 17:50:55, siva wrote: > How did ...
3 years, 9 months ago (2017-03-22 18:01:48 UTC) #8
bkonyi
I've gone ahead and removed the zone usage information. I think everything should be good ...
3 years, 9 months ago (2017-03-22 22:15:07 UTC) #9
siva
lgtm https://codereview.chromium.org/2762323002/diff/60001/runtime/vm/zone.cc File runtime/vm/zone.cc (right): https://codereview.chromium.org/2762323002/diff/60001/runtime/vm/zone.cc#newcode34 runtime/vm/zone.cc:34: static void DecrementMemoryCapacity(uintptr_t size); The two versions of ...
3 years, 9 months ago (2017-03-22 23:36:06 UTC) #10
Cutch
lgtm
3 years, 9 months ago (2017-03-23 13:47:47 UTC) #11
bkonyi
3 years, 9 months ago (2017-03-23 16:03:15 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
c0511ad2ef920518513b986e16735bf9c158aeb8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698