< prev index next >

src/hotspot/share/runtime/thread.hpp

Print this page

        

@@ -787,11 +787,10 @@
 
  public:
   volatile intptr_t _Stalled;
   volatile int _TypeTag;
   ParkEvent * _ParkEvent;                     // for synchronized()
-  ParkEvent * _SleepEvent;                    // for Thread.sleep
   ParkEvent * _MuxEvent;                      // for low-level muxAcquire-muxRelease
   int NativeSyncRecursion;                    // diagnostic
 
   volatile int _OnTrap;                       // Resume-at IP delta
   jint _hashStateW;                           // Marsaglia Shift-XOR thread-local RNG

@@ -2053,10 +2052,14 @@
   InstanceKlass* class_to_be_initialized() const;
 
 private:
   InstanceKlass* _class_to_be_initialized;
 
+  // java.lang.Thread.sleep support
+public:
+  ParkEvent * _SleepEvent;
+  bool sleep(jlong millis);
 };
 
 // Inline implementation of JavaThread::current
 inline JavaThread* JavaThread::current() {
   Thread* thread = Thread::current();
< prev index next >