equal
deleted
inserted
replaced
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_bsd.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 |