Revert^2 "Delay init of classes of pre-allocated exceptions."
This reverts commit 29cf32bb64dc61c4f755661939630775bd36419d.
Fixed heap-poisoning/gcstress tests by calling the Alloc<>()
of the exception object with kInstrumented=true.
Change-Id: I209ab4f020e9c6fb67319fddde69ed87e3653223
Test: m test-art-host-gtest
Test: testrunner.py --host
Test: Pixel 2 XL boots.
Test: run_build_test_target.py art-gtest-heap-poisoning
Test: run_build_test_target.py art-interpreter-gcstress
Bug: 109925024
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc
index 75b091d..be39631 100644
--- a/runtime/common_runtime_test.cc
+++ b/runtime/common_runtime_test.cc
@@ -182,7 +182,7 @@
{
ScopedObjectAccess soa(Thread::Current());
- class_linker_->RunRootClinits();
+ runtime_->RunRootClinits(soa.Self());
}
// We're back in native, take the opportunity to initialize well known classes.