From e36e1acc1a83257190ded1b10c8b32abb42bc4c3 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 8 Feb 2014 22:00:53 -0800 Subject: [PATCH] TLS access is slow. --- src/alloy/backend/ivm/ivm_intcode.cc | 2 +- src/alloy/backend/x64/lowering/tracers.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alloy/backend/ivm/ivm_intcode.cc b/src/alloy/backend/ivm/ivm_intcode.cc index cae092909..211f466c7 100644 --- a/src/alloy/backend/ivm/ivm_intcode.cc +++ b/src/alloy/backend/ivm/ivm_intcode.cc @@ -417,7 +417,7 @@ int TranslateInvalid(TranslationContext& ctx, Instr* i) { uint32_t IntCode_COMMENT(IntCodeState& ics, const IntCode* i) { char* value = (char*)(i->src1_reg | ((uint64_t)i->src2_reg << 32)); - IPRINT("XE[t] :%d: %s\n", ics.thread_state->GetThreadID(), value); + IPRINT("XE[t] :%d: %s\n", ics.thread_state->thread_id(), value); IFLUSH(); return IA_NEXT; } diff --git a/src/alloy/backend/x64/lowering/tracers.cc b/src/alloy/backend/x64/lowering/tracers.cc index b4c0ae74c..f1c18f882 100644 --- a/src/alloy/backend/x64/lowering/tracers.cc +++ b/src/alloy/backend/x64/lowering/tracers.cc @@ -39,7 +39,7 @@ namespace lowering { void TraceString(void* raw_context, const char* str) { auto thread_state = *((ThreadState**)raw_context); - IPRINT("XE[t] :%d: %s\n", thread_state->GetThreadID(), str); + IPRINT("XE[t] :%d: %s\n", thread_state->thread_id(), str); IFLUSH(); }