< prev index next >

src/os/windows/vm/os_windows.hpp

Print this page

        

@@ -115,10 +115,21 @@
   static address fast_jni_accessor_wrapper(BasicType);
 #endif
 
   // 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; }
 };
 
 /*
  * Crash protection for the watcher thread. Wrap the callback
  * with a __try { call() }
< prev index next >