< prev index next >

src/hotspot/share/runtime/objectMonitor.hpp

Print this page
rev 51784 : imported patch syncknobs-04-Knob_ExitRelease
rev 51785 : imported patch syncknobs-05-Knob_InlineNotify
rev 51786 : imported patch syncknobs-06-Knob_Verbose


 178   // Only perform a PerfData operation if the PerfData object has been
 179   // allocated and if the PerfDataManager has not freed the PerfData
 180   // objects which can happen at normal VM shutdown.
 181   //
 182   #define OM_PERFDATA_OP(f, op_str)              \
 183     do {                                         \
 184       if (ObjectMonitor::_sync_ ## f != NULL &&  \
 185           PerfDataManager::has_PerfData()) {     \
 186         ObjectMonitor::_sync_ ## f->op_str;      \
 187       }                                          \
 188     } while (0)
 189 
 190   static PerfCounter * _sync_ContendedLockAttempts;
 191   static PerfCounter * _sync_FutileWakeups;
 192   static PerfCounter * _sync_Parks;
 193   static PerfCounter * _sync_Notifications;
 194   static PerfCounter * _sync_Inflations;
 195   static PerfCounter * _sync_Deflations;
 196   static PerfLongVariable * _sync_MonExtant;
 197 
 198   static int Knob_Verbose;
 199   static int Knob_VerifyInUse;
 200   static int Knob_VerifyMatch;
 201   static int Knob_SpinLimit;
 202 
 203   void* operator new (size_t size) throw();
 204   void* operator new[] (size_t size) throw();
 205   void operator delete(void* p);
 206   void operator delete[] (void *p);
 207 
 208   // TODO-FIXME: the "offset" routines should return a type of off_t instead of int ...
 209   // ByteSize would also be an appropriate type.
 210   static int header_offset_in_bytes()      { return offset_of(ObjectMonitor, _header); }
 211   static int object_offset_in_bytes()      { return offset_of(ObjectMonitor, _object); }
 212   static int owner_offset_in_bytes()       { return offset_of(ObjectMonitor, _owner); }
 213   static int count_offset_in_bytes()       { return offset_of(ObjectMonitor, _count); }
 214   static int recursions_offset_in_bytes()  { return offset_of(ObjectMonitor, _recursions); }
 215   static int cxq_offset_in_bytes()         { return offset_of(ObjectMonitor, _cxq); }
 216   static int succ_offset_in_bytes()        { return offset_of(ObjectMonitor, _succ); }
 217   static int EntryList_offset_in_bytes()   { return offset_of(ObjectMonitor, _EntryList); }
 218 




 178   // Only perform a PerfData operation if the PerfData object has been
 179   // allocated and if the PerfDataManager has not freed the PerfData
 180   // objects which can happen at normal VM shutdown.
 181   //
 182   #define OM_PERFDATA_OP(f, op_str)              \
 183     do {                                         \
 184       if (ObjectMonitor::_sync_ ## f != NULL &&  \
 185           PerfDataManager::has_PerfData()) {     \
 186         ObjectMonitor::_sync_ ## f->op_str;      \
 187       }                                          \
 188     } while (0)
 189 
 190   static PerfCounter * _sync_ContendedLockAttempts;
 191   static PerfCounter * _sync_FutileWakeups;
 192   static PerfCounter * _sync_Parks;
 193   static PerfCounter * _sync_Notifications;
 194   static PerfCounter * _sync_Inflations;
 195   static PerfCounter * _sync_Deflations;
 196   static PerfLongVariable * _sync_MonExtant;
 197 

 198   static int Knob_VerifyInUse;
 199   static int Knob_VerifyMatch;
 200   static int Knob_SpinLimit;
 201 
 202   void* operator new (size_t size) throw();
 203   void* operator new[] (size_t size) throw();
 204   void operator delete(void* p);
 205   void operator delete[] (void *p);
 206 
 207   // TODO-FIXME: the "offset" routines should return a type of off_t instead of int ...
 208   // ByteSize would also be an appropriate type.
 209   static int header_offset_in_bytes()      { return offset_of(ObjectMonitor, _header); }
 210   static int object_offset_in_bytes()      { return offset_of(ObjectMonitor, _object); }
 211   static int owner_offset_in_bytes()       { return offset_of(ObjectMonitor, _owner); }
 212   static int count_offset_in_bytes()       { return offset_of(ObjectMonitor, _count); }
 213   static int recursions_offset_in_bytes()  { return offset_of(ObjectMonitor, _recursions); }
 214   static int cxq_offset_in_bytes()         { return offset_of(ObjectMonitor, _cxq); }
 215   static int succ_offset_in_bytes()        { return offset_of(ObjectMonitor, _succ); }
 216   static int EntryList_offset_in_bytes()   { return offset_of(ObjectMonitor, _EntryList); }
 217 


< prev index next >