| Index: runtime/vm/benchmark_test.cc
|
| diff --git a/runtime/vm/benchmark_test.cc b/runtime/vm/benchmark_test.cc
|
| index 9ad3ab8e49ef63e937681daa28f243586588ff95..3bf9058478edf268b9d3dfa8d0e033127d477804 100644
|
| --- a/runtime/vm/benchmark_test.cc
|
| +++ b/runtime/vm/benchmark_test.cc
|
| @@ -496,6 +496,7 @@ BENCHMARK_SIZE(CoreSnapshotSize) {
|
| TestCase::LoadCoreTestScript(kScriptChars, NULL);
|
| Api::CheckAndFinalizePendingClasses(thread);
|
|
|
| + TransitionNativeToVM transition(thread);
|
| // Write snapshot with object content.
|
| FullSnapshotWriter writer(Snapshot::kFull, &vm_snapshot_data_buffer,
|
| &isolate_snapshot_data_buffer, &malloc_allocator,
|
| @@ -533,6 +534,7 @@ BENCHMARK_SIZE(StandaloneSnapshotSize) {
|
| TestCase::LoadCoreTestScript(kScriptChars, NULL);
|
| Api::CheckAndFinalizePendingClasses(thread);
|
|
|
| + TransitionNativeToVM transition(thread);
|
| // Write snapshot with object content.
|
| FullSnapshotWriter writer(Snapshot::kFull, &vm_snapshot_data_buffer,
|
| &isolate_snapshot_data_buffer, &malloc_allocator,
|
|
|