Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index a0e5ccad6ab86b51695b00d14d19e32f8f042380..ad309daa27eed48a28f0af904eee4da571a7c3a4 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -3537,6 +3537,14 @@ void Class::set_is_finalized() const { |
} |
+void Class::ResetFinalization() const { |
+ ASSERT(IsTopLevel()); |
+ set_state_bits(ClassFinalizedBits::update(RawClass::kAllocated, |
+ raw_ptr()->state_bits_)); |
+ set_state_bits(TypeFinalizedBit::update(false, raw_ptr()->state_bits_)); |
+} |
+ |
+ |
void Class::set_is_prefinalized() const { |
ASSERT(!is_finalized()); |
set_state_bits(ClassFinalizedBits::update(RawClass::kPreFinalized, |