< prev index next >

src/hotspot/share/runtime/synchronizer.hpp

Print this page




 102   // wait on an internal lock, and reclaim original lock
 103   // with original recursion count
 104   static intptr_t complete_exit(Handle obj, TRAPS);
 105   static void reenter (Handle obj, intptr_t recursion, TRAPS);
 106 
 107   // thread-specific and global objectMonitor free list accessors
 108   static void verifyInUse(Thread * Self);
 109   static ObjectMonitor * omAlloc(Thread * Self);
 110   static void omRelease(Thread * Self, ObjectMonitor * m,
 111                         bool FromPerThreadAlloc);
 112   static void omFlush(Thread * Self);
 113 
 114   // Inflate light weight monitor to heavy weight monitor
 115   static ObjectMonitor* inflate(Thread * Self, oop obj, const InflateCause cause);
 116   // This version is only for internal use
 117   static ObjectMonitor* inflate_helper(oop obj);
 118   static const char* inflate_cause_name(const InflateCause cause);
 119 
 120   // Returns the identity hash value for an oop
 121   // NOTE: It may cause monitor inflation
 122   static intptr_t identity_hash_value_for(Handle obj);
 123   static intptr_t FastHashCode(Thread * Self, oop obj);
 124 
 125   // java.lang.Thread support
 126   static bool current_thread_holds_lock(JavaThread* thread, Handle h_obj);
 127   static LockOwnership query_lock_ownership(JavaThread * self, Handle h_obj);
 128 
 129   static JavaThread* get_lock_owner(ThreadsList * t_list, Handle h_obj);
 130 
 131   // JNI detach support
 132   static void release_monitors_owned_by_thread(TRAPS);
 133   static void monitors_iterate(MonitorClosure* m);
 134 
 135   // GC: we current use aggressive monitor deflation policy
 136   // Basically we deflate all monitors that are not busy.
 137   // An adaptive profile-based deflation policy could be used if needed
 138   static void deflate_idle_monitors(DeflateMonitorCounters* counters);
 139   static void deflate_thread_local_monitors(Thread* thread, DeflateMonitorCounters* counters);
 140   static void prepare_deflate_idle_monitors(DeflateMonitorCounters* counters);
 141   static void finish_deflate_idle_monitors(DeflateMonitorCounters* counters);
 142 




 102   // wait on an internal lock, and reclaim original lock
 103   // with original recursion count
 104   static intptr_t complete_exit(Handle obj, TRAPS);
 105   static void reenter (Handle obj, intptr_t recursion, TRAPS);
 106 
 107   // thread-specific and global objectMonitor free list accessors
 108   static void verifyInUse(Thread * Self);
 109   static ObjectMonitor * omAlloc(Thread * Self);
 110   static void omRelease(Thread * Self, ObjectMonitor * m,
 111                         bool FromPerThreadAlloc);
 112   static void omFlush(Thread * Self);
 113 
 114   // Inflate light weight monitor to heavy weight monitor
 115   static ObjectMonitor* inflate(Thread * Self, oop obj, const InflateCause cause);
 116   // This version is only for internal use
 117   static ObjectMonitor* inflate_helper(oop obj);
 118   static const char* inflate_cause_name(const InflateCause cause);
 119 
 120   // Returns the identity hash value for an oop
 121   // NOTE: It may cause monitor inflation

 122   static intptr_t FastHashCode(Thread * Self, oop obj);
 123 
 124   // java.lang.Thread support
 125   static bool current_thread_holds_lock(JavaThread* thread, Handle h_obj);
 126   static LockOwnership query_lock_ownership(JavaThread * self, Handle h_obj);
 127 
 128   static JavaThread* get_lock_owner(ThreadsList * t_list, Handle h_obj);
 129 
 130   // JNI detach support
 131   static void release_monitors_owned_by_thread(TRAPS);
 132   static void monitors_iterate(MonitorClosure* m);
 133 
 134   // GC: we current use aggressive monitor deflation policy
 135   // Basically we deflate all monitors that are not busy.
 136   // An adaptive profile-based deflation policy could be used if needed
 137   static void deflate_idle_monitors(DeflateMonitorCounters* counters);
 138   static void deflate_thread_local_monitors(Thread* thread, DeflateMonitorCounters* counters);
 139   static void prepare_deflate_idle_monitors(DeflateMonitorCounters* counters);
 140   static void finish_deflate_idle_monitors(DeflateMonitorCounters* counters);
 141 


< prev index next >