Index: src/v8threads.cc |
diff --git a/src/v8threads.cc b/src/v8threads.cc |
index 243947636012cf4030782e2b9de472e3d824fe97..838cae772dcd1422050704e2cb69c21a9cb3bc6c 100644 |
--- a/src/v8threads.cc |
+++ b/src/v8threads.cc |
@@ -309,13 +309,13 @@ void ThreadManager::MarkCompactEpilogue(bool is_compacting) { |
int ThreadManager::CurrentId() { |
- return bit_cast<int, void*>(Thread::GetThreadLocal(thread_id_key)); |
+ return Thread::GetThreadLocalInt(thread_id_key); |
} |
void ThreadManager::AssignId() { |
- if (Thread::GetThreadLocal(thread_id_key) == NULL) { |
- Thread::SetThreadLocal(thread_id_key, bit_cast<void*, int>(next_id_++)); |
+ if (!Thread::HasThreadLocal(thread_id_key)) { |
+ Thread::SetThreadLocalInt(thread_id_key, next_id_++); |
} |
} |