Revert "Disable shared method memory optimization."
This reverts commit 9f466bd54aa6a6c0f12b2a6ccf4d19bc987bcf04.
We should now have better boot image profiles.
Bug: 225466002
Test: m
Change-Id: I4f98d7e066db880af8fb4d644abb1ef7befa4d66
diff --git a/runtime/art_method.h b/runtime/art_method.h
index c2de718..d8bd380 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -259,9 +259,7 @@
}
void SetMemorySharedMethod() REQUIRES_SHARED(Locks::mutator_lock_) {
- // Disable until we make sure critical code is AOTed.
- static constexpr bool kEnabledMemorySharedMethod = false;
- if (kEnabledMemorySharedMethod && !IsIntrinsic() && !IsAbstract()) {
+ if (!IsIntrinsic() && !IsAbstract()) {
AddAccessFlags(kAccMemorySharedMethod);
SetHotCounter();
}