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

Issue 1294823004: Fix almost all leaks of InterruptableThreadState instances. (Closed)

Created:
5 years, 4 months ago by koda
Modified:
5 years, 4 months ago
Reviewers:
Cutch, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, zra
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix almost all leaks of InterruptableThreadState instances. The ITS field was being NULLed on every isolate exit, causing leaks. Move the ITS field out of Thread::State since it should not be saved/restored by ThreadRegistry (it contains the OS ThreadId and is updated via Profiler). Delete the ITS in ~Thread, which is called for all threads except embedder-created threads on Windows, so for each of those there is still a small leak. BUG=https://github.com/dart-lang/sdk/issues/24129

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -9 lines) Patch
M runtime/vm/thread.h View 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/thread.cc View 7 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
koda
5 years, 4 months ago (2015-08-20 05:02:49 UTC) #2
koda
On 2015/08/20 05:02:49, koda wrote: Note that this seems to be superseded by John's CL ...
5 years, 4 months ago (2015-08-20 14:34:30 UTC) #3
koda
5 years, 4 months ago (2015-08-20 22:29:27 UTC) #4
Message was sent while issue was closed.
That change is now committed, but I'll keep this CL around for now in case we
want it as a minimally disruptive cherry pick for 1.12. Let me know what you
think.

Powered by Google App Engine
This is Rietveld 408576698