Mercurial > hg > graal-compiler
comparison src/os_cpu/linux_x86/vm/threadLS_linux_x86.cpp @ 7180:f34d701e952e
8003935: Simplify the needed includes for using Thread::current()
Reviewed-by: dholmes, rbackman, coleenp
author | stefank |
---|---|
date | Tue, 27 Nov 2012 14:20:21 +0100 |
parents | 65dba8692db7 |
children |
comparison
equal
deleted
inserted
replaced
7179:d0aa87f04bd5 | 7180:f34d701e952e |
---|---|
21 * questions. | 21 * questions. |
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 #include "precompiled.hpp" | 25 #include "precompiled.hpp" |
26 #include "runtime/thread.inline.hpp" | |
26 #include "runtime/threadLocalStorage.hpp" | 27 #include "runtime/threadLocalStorage.hpp" |
27 #include "thread_linux.inline.hpp" | |
28 | 28 |
29 // Map stack pointer (%esp) to thread pointer for faster TLS access | 29 // Map stack pointer (%esp) to thread pointer for faster TLS access |
30 // | 30 // |
31 // Here we use a flat table for better performance. Getting current thread | 31 // Here we use a flat table for better performance. Getting current thread |
32 // is down to one memory access (read _sp_map[%esp>>12]) in generated code | 32 // is down to one memory access (read _sp_map[%esp>>12]) in generated code |