summaryrefslogtreecommitdiff
path: root/runtime/entrypoints_order_test.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2024-07-05 09:08:25 +0000
committer Mythri Alle <mythria@google.com> 2024-07-11 14:00:00 +0000
commitb67495b6aa3f1253383938f2699da6eada1a0ead (patch)
tree902d6c0e3f61e399b0c2fad7f75c5e63a1f9740c /runtime/entrypoints_order_test.cc
parent3b92bd7e571e3efc0d9afc37f5262cdb16fc6733 (diff)
Use a current entry pointer instead of index for the method trace buffer
For the thread local method trace buffers we used to store the pointer to the buffer and the current index of the next free space. We compute the address of the location to store the entry in the generated JITed code when storing the method trace entry. Instead we could use a pointer to the entry to avoid computing the address in the generated code. This doesn't have a noticeable impact for the regular method tracing but is better for the upcoming changes that will introduce an experimental feature for on-demand method tracing. Bug: 259258187 Test: art/test.py Change-Id: I7e39e686bee62ee91c651a1cb3ff242470010cb6
Diffstat (limited to 'runtime/entrypoints_order_test.cc')
-rw-r--r--runtime/entrypoints_order_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/entrypoints_order_test.cc b/runtime/entrypoints_order_test.cc
index b25e01067b..090484eabb 100644
--- a/runtime/entrypoints_order_test.cc
+++ b/runtime/entrypoints_order_test.cc
@@ -134,9 +134,9 @@ class EntrypointsOrderTest : public CommonArtTest {
EXPECT_OFFSET_DIFFP(
Thread, tlsPtr_, top_reflective_handle_scope, method_trace_buffer, sizeof(void*));
EXPECT_OFFSET_DIFFP(
- Thread, tlsPtr_, method_trace_buffer, method_trace_buffer_index, sizeof(void*));
+ Thread, tlsPtr_, method_trace_buffer, method_trace_buffer_curr_entry, sizeof(void*));
EXPECT_OFFSET_DIFFP(
- Thread, tlsPtr_, method_trace_buffer_index, thread_exit_flags, sizeof(void*));
+ Thread, tlsPtr_, method_trace_buffer_curr_entry, thread_exit_flags, sizeof(void*));
EXPECT_OFFSET_DIFFP(
Thread, tlsPtr_, thread_exit_flags, last_no_thread_suspension_cause, sizeof(void*));
EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, last_no_thread_suspension_cause,