< prev index next >

src/hotspot/share/runtime/lockStack.hpp

Print this page

 97   // Check if object is recursive.
 98   // Precondition: This lock-stack must contain the oop.
 99   inline bool is_recursive(oop o) const;
100 
101   // Try recursive enter.
102   // Precondition: This lock-stack must not be full.
103   inline bool try_recursive_enter(oop o);
104 
105   // Try recursive exit.
106   // Precondition: This lock-stack must contain the oop.
107   inline bool try_recursive_exit(oop o);
108 
109   // Removes an oop from an arbitrary location of this lock-stack.
110   // Precondition: This lock-stack must contain the oop.
111   // Returns the number of oops removed.
112   inline size_t remove(oop o);
113 
114   // Tests whether the oop is on this lock-stack.
115   inline bool contains(oop o) const;
116 





117   // GC support
118   inline void oops_do(OopClosure* cl);
119 
120   // Printing
121   void print_on(outputStream* st);
122 };
123 
124 #endif // SHARE_RUNTIME_LOCKSTACK_HPP

 97   // Check if object is recursive.
 98   // Precondition: This lock-stack must contain the oop.
 99   inline bool is_recursive(oop o) const;
100 
101   // Try recursive enter.
102   // Precondition: This lock-stack must not be full.
103   inline bool try_recursive_enter(oop o);
104 
105   // Try recursive exit.
106   // Precondition: This lock-stack must contain the oop.
107   inline bool try_recursive_exit(oop o);
108 
109   // Removes an oop from an arbitrary location of this lock-stack.
110   // Precondition: This lock-stack must contain the oop.
111   // Returns the number of oops removed.
112   inline size_t remove(oop o);
113 
114   // Tests whether the oop is on this lock-stack.
115   inline bool contains(oop o) const;
116 
117   inline int monitor_count() const;
118   inline void move_to_address(oop* start);
119   inline void move_from_address(oop* start, int count);
120   inline int unique_count() const NOT_DEBUG_RETURN0;
121 
122   // GC support
123   inline void oops_do(OopClosure* cl);
124 
125   // Printing
126   void print_on(outputStream* st);
127 };
128 
129 #endif // SHARE_RUNTIME_LOCKSTACK_HPP
< prev index next >