< prev index next >

src/hotspot/share/runtime/synchronizer.hpp

Print this page




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




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

 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 


< prev index next >