Files
sdk/pkg/vm
Alexander Markov 357f457059 [VM/kernel] Clean up garbage in batch mode of gen_kernel
Kernel has a global variable globalDebuggingNames which contains
NameSystem. NameSystem permanently holds certain kernel AST objects
(via various Namers). Calling toString() on a kernel AST object may
permanently add it to a global NameSystem, leaking memory.

It becomes a problem when gen_kernel is used in batch mode by
test tool. In such case, resident gen_kernel process is reused
to perform multiple compilations, and globalDebuggingNames
accumulates garbage kernel AST objects from finished compilations.

In this CL, globalDebuggingNames is reset after each compilation
in batch mode of gen_kernel.

Change-Id: Ie05635750fb149bb0e32415f03802e0c66f06a27
Reviewed-on: https://dart-review.googlesource.com/39883
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2018-02-08 21:38:03 +00:00
..

This package hosts VM specific Dart code and helper scripts.