--- old/src/os/windows/vm/os_windows.hpp 2015-11-04 23:03:37.876079090 -0500 +++ new/src/os/windows/vm/os_windows.hpp 2015-11-04 23:03:36.375994551 -0500 @@ -117,6 +117,17 @@ // filter function to ignore faults on serializations page static LONG WINAPI serialize_fault_filter(struct _EXCEPTION_POINTERS* e); + + // Fast access to current thread +protected: + static int _thread_ptr_offset; +private: + static void initialize_thread_ptr_offset(); +public: + static inline void set_thread_ptr_offset( int offset ) { + _thread_ptr_offset = offset; + } + static inline int get_thread_ptr_offset() { return _thread_ptr_offset; } }; /*