| Index: runtime/vm/clustered_snapshot.cc
|
| diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc
|
| index 7676242958a32f32d01a704702d6217bd6370ddb..c8d139ce7c9f219881d79169af615732db4e8828 100644
|
| --- a/runtime/vm/clustered_snapshot.cc
|
| +++ b/runtime/vm/clustered_snapshot.cc
|
| @@ -1811,12 +1811,14 @@ class ObjectPoolSerializationCluster : public SerializationCluster {
|
| switch (entry_type) {
|
| case ObjectPool::kTaggedObject: {
|
| #if !defined(TARGET_ARCH_DBC)
|
| - if (entry.raw_obj_ ==
|
| - StubCode::CallNativeCFunction_entry()->code()) {
|
| + if ((entry.raw_obj_ ==
|
| + StubCode::CallNoScopeNative_entry()->code()) ||
|
| + (entry.raw_obj_ ==
|
| + StubCode::CallAutoScopeNative_entry()->code())) {
|
| // Natives can run while precompiling, becoming linked and
|
| // switching their stub. Reset to the initial stub used for
|
| // lazy-linking.
|
| - s->WriteRef(StubCode::CallBootstrapCFunction_entry()->code());
|
| + s->WriteRef(StubCode::CallBootstrapNative_entry()->code());
|
| break;
|
| }
|
| #endif
|
|
|