< prev index next >

src/hotspot/share/runtime/synchronizer.hpp

Print this page

104   static bool quick_notify(oopDesc* obj, JavaThread* current, bool All);
105   static bool quick_enter(oop obj, JavaThread* current, BasicLock* Lock);
106 
107   // Special internal-use-only method for use by JVM infrastructure
108   // that needs to wait() on a java-level object but must not respond
109   // to interrupt requests and doesn't timeout.
110   static void wait_uninterruptibly(Handle obj, JavaThread* current);
111 
112   // used by classloading to free classloader object lock,
113   // wait on an internal lock, and reclaim original lock
114   // with original recursion count
115   static intx complete_exit(Handle obj, JavaThread* current);
116   static void reenter (Handle obj, intx recursions, JavaThread* current);
117 
118   // Inflate light weight monitor to heavy weight monitor
119   static ObjectMonitor* inflate(Thread* current, oop obj, const InflateCause cause);
120   // This version is only for internal use
121   static void inflate_helper(oop obj);
122   static const char* inflate_cause_name(const InflateCause cause);
123 


124   // Returns the identity hash value for an oop
125   // NOTE: It may cause monitor inflation
126   static intptr_t identity_hash_value_for(Handle obj);
127   static intptr_t FastHashCode(Thread* current, oop obj);
128 


129   // java.lang.Thread support
130   static bool current_thread_holds_lock(JavaThread* current, Handle h_obj);
131 
132   static JavaThread* get_lock_owner(ThreadsList * t_list, Handle h_obj);
133 
134   // JNI detach support
135   static void release_monitors_owned_by_thread(JavaThread* current);
136   static void monitors_iterate(MonitorClosure* m, JavaThread* thread);
137 
138   // Initialize the gInflationLocks
139   static void initialize();
140 
141   // GC: we current use aggressive monitor deflation policy
142   // Basically we try to deflate all monitors that are not busy.
143   static size_t deflate_idle_monitors();
144 
145   // Deflate idle monitors:
146   static void chk_for_block_req(JavaThread* current, const char* op_name,
147                                 const char* cnt_name, size_t cnt, LogStream* ls,
148                                 elapsedTimer* timer_p);

104   static bool quick_notify(oopDesc* obj, JavaThread* current, bool All);
105   static bool quick_enter(oop obj, JavaThread* current, BasicLock* Lock);
106 
107   // Special internal-use-only method for use by JVM infrastructure
108   // that needs to wait() on a java-level object but must not respond
109   // to interrupt requests and doesn't timeout.
110   static void wait_uninterruptibly(Handle obj, JavaThread* current);
111 
112   // used by classloading to free classloader object lock,
113   // wait on an internal lock, and reclaim original lock
114   // with original recursion count
115   static intx complete_exit(Handle obj, JavaThread* current);
116   static void reenter (Handle obj, intx recursions, JavaThread* current);
117 
118   // Inflate light weight monitor to heavy weight monitor
119   static ObjectMonitor* inflate(Thread* current, oop obj, const InflateCause cause);
120   // This version is only for internal use
121   static void inflate_helper(oop obj);
122   static const char* inflate_cause_name(const InflateCause cause);
123 
124   static markWord safe_load_mark(oop obj);
125 
126   // Returns the identity hash value for an oop
127   // NOTE: It may cause monitor inflation
128   static intptr_t identity_hash_value_for(Handle obj);
129   static intptr_t FastHashCode(Thread* current, oop obj);
130 
131   static markWord stable_mark(const oop obj);
132 
133   // java.lang.Thread support
134   static bool current_thread_holds_lock(JavaThread* current, Handle h_obj);
135 
136   static JavaThread* get_lock_owner(ThreadsList * t_list, Handle h_obj);
137 
138   // JNI detach support
139   static void release_monitors_owned_by_thread(JavaThread* current);
140   static void monitors_iterate(MonitorClosure* m, JavaThread* thread);
141 
142   // Initialize the gInflationLocks
143   static void initialize();
144 
145   // GC: we current use aggressive monitor deflation policy
146   // Basically we try to deflate all monitors that are not busy.
147   static size_t deflate_idle_monitors();
148 
149   // Deflate idle monitors:
150   static void chk_for_block_req(JavaThread* current, const char* op_name,
151                                 const char* cnt_name, size_t cnt, LogStream* ls,
152                                 elapsedTimer* timer_p);
< prev index next >