ec6def53de
This is follow up for the previous change somewhat incorrectly used FLAG_profiler in ~OSThread to determine whether we need to delete interrupter related state. FLAG_profiler is mutable in non-PRODUCT builds so this could create memory leak. TEST=testing PRODUCT and non-PRODUCT builds manually Change-Id: Icf5ca6b83daab91daa125755261700ba2dbb9533 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328422 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Slava Egorov <vegorov@google.com>