dart-sdk/runtime
asiva b67f45f955 [VM/Runtime] Fix 'File' object leak in async file open operation
The 'File' object created in the async file open method is leaked
if the operation is not completed when the isolate shuts down
with an unhandled exception.
This change adds a finalizable state for the 'File' object so that
the message deletion that happens when ports are closed could run
the callback to clean up the 'File' object.

TEST=new tests added

Change-Id: I4a3cb28370d27306c795c1914aeb5c18a1d85e2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210761
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2021-08-23 20:57:48 +00:00
..
bin [VM/Runtime] Fix 'File' object leak in async file open operation 2021-08-23 20:57:48 +00:00
docs [build] Remove runtime_kernel target from GN build 2021-08-13 10:09:41 +00:00
include [VM/Runtime] Fix 'File' object leak in async file open operation 2021-08-23 20:57:48 +00:00
lib [vm/concurrency] Remove internal-only "Isolate.spawn() into new group" functionality 2021-08-19 15:19:00 +00:00
observatory [gardening] Attempt to fix flakily timing out service{,_2}/get_vm_timeline_rpc_test 2021-08-20 15:56:24 +00:00
observatory_2 [gardening] Attempt to fix flakily timing out service{,_2}/get_vm_timeline_rpc_test 2021-08-20 15:56:24 +00:00
platform [vm/compiler] Reduce number of subtype comparisons in AOT. 2021-08-19 18:32:01 +00:00
tests [vm, compiler] Fix saving an invalid pointer to the stack in the BuildMethodExtractor stub. 2021-08-23 20:05:27 +00:00
third_party
tools [dartfuzz] Revert change to dartfuzz_test that made a compile-time error in both runs count as a divergence. 2021-07-29 16:33:39 +00:00
vm [VM/Runtime] Fix 'File' object leak in async file open operation 2021-08-23 20:57:48 +00:00
.clang-tidy
.gitignore
BUILD.gn Allow deprecated copy on fuchsia 2021-08-11 01:14:22 +00:00
codereview.settings
configs.gni
CPPLINT.cfg
PRESUBMIT.py [python3] Migrate PRESUBMIT.py files 2021-08-16 08:29:54 +00:00
runtime_args.gni