0ae869771a
This CL adds a `dart::embedder::Cleanup()` (we already have `dart::embedder::InitOnce()`). This allows us to allocate the global state and also tear it down. As a side-effect this will also not allocate those variables if not needed, which should fix b/151210948 Change-Id: I3c5c619586380bf27ee863ba026bbc631f243d85 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139640 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>