summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-02-24 16:20:18 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-02-25 20:49:38 +0000
commit48eb839e66d630387dc42e652acdb8e23d110136 (patch)
tree884aee6f192d18a8caf66f1d80b26136d0c6e1a9 /runtime/common_runtime_test.cc
parent7d2cfeb841c18a1628c8393606656e817eb9bb85 (diff)
Initialize intrinsics in dex2oat.
When compiling without a boot image, we used to not initialize them. Also adjust run-test with --no-image to not pass an image to dex2oat. Test: test.py --no-image --optimizing Bug: 220702556 Change-Id: Ia0f26f35ee4ad24988e067c4c7c53a0acf98cf51
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r--runtime/common_runtime_test.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc
index a14d3862ad..a48d860f0a 100644
--- a/runtime/common_runtime_test.cc
+++ b/runtime/common_runtime_test.cc
@@ -60,6 +60,7 @@
#include "noop_compiler_callbacks.h"
#include "profile/profile_compilation_info.h"
#include "runtime-inl.h"
+#include "runtime_intrinsics.h"
#include "scoped_thread_state_change-inl.h"
#include "thread.h"
#include "well_known_classes.h"
@@ -160,8 +161,10 @@ void CommonRuntimeTestImpl::FinalizeSetup() {
runtime_->RunRootClinits(soa.Self());
}
- // We're back in native, take the opportunity to initialize well known classes.
+ // We're back in native, take the opportunity to initialize well known classes and ensure
+ // intrinsics are initialized.
WellKnownClasses::Init(Thread::Current()->GetJniEnv());
+ InitializeIntrinsics();
// Create the heap thread pool so that the GC runs in parallel for tests. Normally, the thread
// pool is created by the runtime.