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

Issue 2363823002: Fix for issue 27380 - VM stuck in deadlock with background finalization and background compiler thr… (Closed)

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

Description

Fix for issue 27380 - VM stuck in deadlock with background finalization and background compiler thread - fixed an inadvertant flip in the safepoint check in this cl https://github.com/dart-lang/sdk/commit/e72c1fb47 - return (IsMutatorThread() || - (isolate_ != NULL && !isolate_->thread_registry()->AtSafepoint())); + return (IsMutatorThread() || IsAtSafepoint()); - increase the scope of CanCollectGarbage in Heap::AllocateOld to also account for the tasks lock as checking for tasks inside a safepoint scope can lead to deadlocks - fix an aggressive assertion in compiler for expected errors being only LanguageErrors to allowing UnhandledExceptions (OOM, stack overflows etc.) - fix an aggressive assert in exception handler (handler pc can be 0 even in the mutator thread. - workaround issue 27413 in PageSpace::CanIncreaseCapacityInWords BUG=27380 R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/da487a567c2a08646e8061c4239d3d0c754d2a91

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -20 lines) Patch
M runtime/vm/compiler.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/heap.cc View 1 chunk +10 lines, -10 lines 0 comments Download
M runtime/vm/pages.h View 1 chunk +7 lines, -2 lines 0 comments Download
M runtime/vm/thread.cc View 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
siva
4 years, 3 months ago (2016-09-22 20:15:41 UTC) #3
Florian Schneider
Lgtm. Add a # before the issue number so that github references this CL autmatically ...
4 years, 3 months ago (2016-09-22 20:32:20 UTC) #4
siva
4 years, 3 months ago (2016-09-23 17:14:19 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
da487a567c2a08646e8061c4239d3d0c754d2a91 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698