Allow the framework to register sensistive threads to the runtime
Bug: 27865109
Bug: 28065407
(cherry picked from commit 8fff24953c78bd58f3a42ac83b340b90e7e7228a)
Change-Id: I82094e46a2fd12617e091d98831193f9ff56d26b
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 95995fb..f0510af 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1992,4 +1992,8 @@
GetHeap()->UpdateProcessState(old_process_state, process_state);
}
+void Runtime::RegisterSensitiveThread() const {
+ Thread::SetJitSensitiveThread();
+}
+
} // namespace art