diff options
| -rw-r--r-- | runtime/runtime_image.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/runtime_image.cc b/runtime/runtime_image.cc index b299b9b236..5d304698bf 100644 --- a/runtime/runtime_image.cc +++ b/runtime/runtime_image.cc @@ -604,8 +604,11 @@ class RuntimeImageHelper { } for (Handle<mirror::Class> cls : classes_to_write) { - ScopedAssertNoThreadSuspension sants("Writing class"); - CopyClass(cls.Get()); + { + ScopedAssertNoThreadSuspension sants("Writing class"); + CopyClass(cls.Get()); + } + self->AllowThreadSuspension(); } // Relocate the type array entries. We do this now before creating image |