hotspot/src/os/windows/vm/os_windows.hpp
changeset 34633 2a6c7c7b30a7
parent 30143 7e99f2b4bae5
child 35056 252c47a46a01
--- a/hotspot/src/os/windows/vm/os_windows.hpp	Fri Dec 04 04:29:31 2015 +0000
+++ b/hotspot/src/os/windows/vm/os_windows.hpp	Fri Dec 04 04:06:37 2015 -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; }
 };
 
 /*