From 17c7ed2de734cf892b005b1d15b3db9855506f14 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 12 Feb 2025 14:30:16 +0000 Subject: Refactor `Instrumentation` out of `Runtime`. Avoid indirectly `#include`-ing `instrumentation.h` in every compilation unit that needs the `runtime.h`. This reduces incremental compilation times when touching certain files. The additional load when accessing `Instrumentation` via the `Runtime` has negligible performance impact. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Ibaf96696693b105e843c7c2cbf4e7604b126808e --- tools/cpp-define-generator/runtime.def | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/cpp-define-generator/runtime.def') diff --git a/tools/cpp-define-generator/runtime.def b/tools/cpp-define-generator/runtime.def index fd6567d87e..66a542a5d1 100644 --- a/tools/cpp-define-generator/runtime.def +++ b/tools/cpp-define-generator/runtime.def @@ -31,6 +31,4 @@ ASM_DEFINE(RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET, ASM_DEFINE(RUNTIME_SAVE_REFS_ONLY_METHOD_OFFSET, art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) ASM_DEFINE(RUNTIME_INSTRUMENTATION_OFFSET, art::Runtime::GetInstrumentationOffset().Int32Value()) -ASM_DEFINE(RUN_EXIT_HOOKS_OFFSET_FROM_RUNTIME_INSTANCE, - art::Runtime::GetInstrumentationOffset().Int32Value() + - art::instrumentation::Instrumentation::RunExitHooksOffset().Int32Value()) + -- cgit v1.2.3-59-g8ed1b