| Index: runtime/vm/dart_api_impl_test.cc
|
| diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc
|
| index 14f093d2ae6bb97da35b46fbe415f63546a652fe..db2793f785e72d40657a27deebbc060a62efcc15 100644
|
| --- a/runtime/vm/dart_api_impl_test.cc
|
| +++ b/runtime/vm/dart_api_impl_test.cc
|
| @@ -1337,6 +1337,10 @@ TEST_CASE(WeakPersistentHandle) {
|
|
|
| Dart_DeletePersistentHandle(weak_new_ref);
|
| Dart_DeletePersistentHandle(weak_old_ref);
|
| +
|
| + // garbage collect one last time to revisit deleted handles
|
| + Isolate::Current()->heap()->CollectGarbage(Heap::kNew);
|
| + Isolate::Current()->heap()->CollectGarbage(Heap::kOld);
|
| }
|
|
|
|
|
|
|