< prev index next >

src/hotspot/share/runtime/objectMonitor.hpp

Print this page
rev 51675 : imported patch 8210514


 304 // Use the following at your own risk
 305   intptr_t  complete_exit(TRAPS);
 306   void      reenter(intptr_t recursions, TRAPS);
 307 
 308  private:
 309   void      AddWaiter(ObjectWaiter * waiter);
 310   static    void DeferredInitialize();
 311   void      INotify(Thread * Self);
 312   ObjectWaiter * DequeueWaiter();
 313   void      DequeueSpecificWaiter(ObjectWaiter * waiter);
 314   void      EnterI(TRAPS);
 315   void      ReenterI(Thread * Self, ObjectWaiter * SelfNode);
 316   void      UnlinkAfterAcquire(Thread * Self, ObjectWaiter * SelfNode);
 317   int       TryLock(Thread * Self);
 318   int       NotRunnable(Thread * Self, Thread * Owner);
 319   int       TrySpin(Thread * Self);
 320   void      ExitEpilog(Thread * Self, ObjectWaiter * Wakee);
 321   bool      ExitSuspendEquivalent(JavaThread * Self);
 322 };
 323 
 324 #undef TEVENT
 325 #define TEVENT(nom) { if (SyncVerbose) FEVENT(nom); }
 326 
 327 #define FEVENT(nom)                             \
 328   {                                             \
 329     static volatile int ctr = 0;                \
 330     int v = ++ctr;                              \
 331     if ((v & (v - 1)) == 0) {                   \
 332       tty->print_cr("INFO: " #nom " : %d", v);  \
 333       tty->flush();                             \
 334     }                                           \
 335   }
 336 
 337 #undef  TEVENT
 338 #define TEVENT(nom) {;}
 339 
 340 
 341 #endif // SHARE_VM_RUNTIME_OBJECTMONITOR_HPP


 304 // Use the following at your own risk
 305   intptr_t  complete_exit(TRAPS);
 306   void      reenter(intptr_t recursions, TRAPS);
 307 
 308  private:
 309   void      AddWaiter(ObjectWaiter * waiter);
 310   static    void DeferredInitialize();
 311   void      INotify(Thread * Self);
 312   ObjectWaiter * DequeueWaiter();
 313   void      DequeueSpecificWaiter(ObjectWaiter * waiter);
 314   void      EnterI(TRAPS);
 315   void      ReenterI(Thread * Self, ObjectWaiter * SelfNode);
 316   void      UnlinkAfterAcquire(Thread * Self, ObjectWaiter * SelfNode);
 317   int       TryLock(Thread * Self);
 318   int       NotRunnable(Thread * Self, Thread * Owner);
 319   int       TrySpin(Thread * Self);
 320   void      ExitEpilog(Thread * Self, ObjectWaiter * Wakee);
 321   bool      ExitSuspendEquivalent(JavaThread * Self);
 322 };
 323 

















 324 #endif // SHARE_VM_RUNTIME_OBJECTMONITOR_HPP
< prev index next >