| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 0c0415f55bd956e4b7e42d7c4f240e89ef42ce50..5e098c76d9f319ae6f27759a3de12896e98f7599 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -10551,7 +10551,7 @@ void Library::AllocatePrivateKey() const {
|
| Zone* zone = thread->zone();
|
| Isolate* isolate = thread->isolate();
|
|
|
| - if (isolate->IsReloading()) {
|
| + if (FLAG_support_reload && isolate->IsReloading()) {
|
| // When reloading, we need to make sure we use the original private key
|
| // if this library previously existed.
|
| IsolateReloadContext* reload_context = isolate->reload_context();
|
|
|