DescriptionFix 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 #
Messages
Total messages: 4 (1 generated)
|