< prev index next >
src/hotspot/share/classfile/moduleEntry.hpp
Print this page
rev 56464 : 8231707: Improve Mutex inlining
Contributed-by: robbin.ehn@oracle.com, claes.redestad@oracle.com
*** 143,158 ****
bool has_default_read_edges() const {
return _has_default_read_edges;
}
// Sets true and returns the previous value.
! bool set_has_default_read_edges() {
! MutexLocker ml(Module_lock);
! bool prev = _has_default_read_edges;
! _has_default_read_edges = true;
! return prev;
! }
void set_is_patched() {
_is_patched = true;
}
bool is_patched() {
--- 143,153 ----
bool has_default_read_edges() const {
return _has_default_read_edges;
}
// Sets true and returns the previous value.
! bool set_has_default_read_edges();
void set_is_patched() {
_is_patched = true;
}
bool is_patched() {
< prev index next >