rev 56639 : loosen a couple more counter checks due to races observed in testing; simplify om_release() extraction of mid since list head or cur_mid_in_use is marked; simplify deflate_monitor_list() extraction of mid since there are no parallel deleters due to the safepoint; simplify deflate_monitor_list_using_JT() extraction of mid since list head or cur_mid_in_use is marked; prepend_block_to_lists() - simplify based on David H's comments; does not need load_acquire() or release_store() because of the cmpxchg(); prepend_to_common() - simplify to use mark_next_loop() for m and use mark_list_head() and release_store() for the non-empty list case; add more debugging for "Non-balanced monitor enter/exit" failure mode; fix race in inflate() in the "CASE: neutral" code path; install_displaced_markword_in_object() does not need to clear the header field since that is handled when the ObjectMonitor is moved from the global free list; LSuccess should clear boxReg to set ICC.ZF=1 to avoid depending on existing boxReg contents; update fast_unlock() to detect when object no longer refers to the same ObjectMonitor and take fast path exit instead; clarify fast_lock() code where we detect when object no longer refers to the same ObjectMonitor; add/update comments for movptr() calls where we move a literal into an Address; remove set_owner(); refactor setting of owner field into set_owner_from(2 versions), set_owner_from_BasicLock(), and try_set_owner_from(); the new functions include monitorinflation+owner logging; extract debug code from v2.06 and v2.07 and move to v2.07.debug; change 'jccb' -> 'jcc' and 'jmpb' -> 'jmp' as needed; checkpoint initial version of MacroAssembler::inc_om_ref_count(); update LP64 MacroAssembler::fast_lock() and fast_unlock() to use inc_om_ref_count(); fast_lock() return flag setting logic can use 'testptr(tmpReg, tmpReg)' instead of 'cmpptr(tmpReg, 0)' since that's more efficient; fast_unlock() LSuccess return flag setting logic can use 'testl (boxReg, 0)' instead of 'xorptr(boxReg, boxReg)' since that's more efficient; cleanup "fast-path" vs "fast path" and "slow-path" vs "slow path"; update MacroAssembler::rtm_inflated_locking() to use inc_om_ref_count(); update MacroAssembler::fast_lock() to preserve the flags before decrementing ref_count and restore the flags afterwards; this is more clean than depending on the contents of rax/tmpReg; coleenp CR - refactor async monitor deflation work from ServiceThread::service_thread_entry() to ObjectSynchronizer::deflate_idle_monitors_using_JT(); rehn,eosterlund CR - add support for HandshakeAfterDeflateIdleMonitors for platforms that don't have ObjectMonitor ref_count support implemented in C2 fast_lock() and fast_unlock().
99 LOG_TAG(membername) \ 100 LOG_TAG(memops) \ 101 LOG_TAG(methodcomparator) \ 102 LOG_TAG(metadata) \ 103 LOG_TAG(metaspace) \ 104 LOG_TAG(mmu) \ 105 LOG_TAG(module) \ 106 LOG_TAG(monitorinflation) \ 107 LOG_TAG(monitormismatch) \ 108 LOG_TAG(nestmates) \ 109 LOG_TAG(nmethod) \ 110 LOG_TAG(normalize) \ 111 LOG_TAG(objecttagging) \ 112 LOG_TAG(obsolete) \ 113 LOG_TAG(oldobject) \ 114 LOG_TAG(oom) \ 115 LOG_TAG(oopmap) \ 116 LOG_TAG(oops) \ 117 LOG_TAG(oopstorage) \ 118 LOG_TAG(os) \ 119 LOG_TAG(pagesize) \ 120 LOG_TAG(patch) \ 121 LOG_TAG(path) \ 122 LOG_TAG(perf) \ 123 LOG_TAG(periodic) \ 124 LOG_TAG(phases) \ 125 LOG_TAG(plab) \ 126 LOG_TAG(preview) /* Trace loading of preview feature types */ \ 127 LOG_TAG(promotion) \ 128 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \ 129 LOG_TAG(protectiondomain) /* "Trace protection domain verification" */ \ 130 LOG_TAG(ref) \ 131 LOG_TAG(redefine) \ 132 LOG_TAG(refine) \ 133 LOG_TAG(region) \ 134 LOG_TAG(reloc) \ 135 LOG_TAG(remset) \ 136 LOG_TAG(parser) \ 137 LOG_TAG(ptrqueue) \ 138 LOG_TAG(purge) \ |
99 LOG_TAG(membername) \
100 LOG_TAG(memops) \
101 LOG_TAG(methodcomparator) \
102 LOG_TAG(metadata) \
103 LOG_TAG(metaspace) \
104 LOG_TAG(mmu) \
105 LOG_TAG(module) \
106 LOG_TAG(monitorinflation) \
107 LOG_TAG(monitormismatch) \
108 LOG_TAG(nestmates) \
109 LOG_TAG(nmethod) \
110 LOG_TAG(normalize) \
111 LOG_TAG(objecttagging) \
112 LOG_TAG(obsolete) \
113 LOG_TAG(oldobject) \
114 LOG_TAG(oom) \
115 LOG_TAG(oopmap) \
116 LOG_TAG(oops) \
117 LOG_TAG(oopstorage) \
118 LOG_TAG(os) \
119 LOG_TAG(owner) \
120 LOG_TAG(pagesize) \
121 LOG_TAG(patch) \
122 LOG_TAG(path) \
123 LOG_TAG(perf) \
124 LOG_TAG(periodic) \
125 LOG_TAG(phases) \
126 LOG_TAG(plab) \
127 LOG_TAG(preview) /* Trace loading of preview feature types */ \
128 LOG_TAG(promotion) \
129 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
130 LOG_TAG(protectiondomain) /* "Trace protection domain verification" */ \
131 LOG_TAG(ref) \
132 LOG_TAG(redefine) \
133 LOG_TAG(refine) \
134 LOG_TAG(region) \
135 LOG_TAG(reloc) \
136 LOG_TAG(remset) \
137 LOG_TAG(parser) \
138 LOG_TAG(ptrqueue) \
139 LOG_TAG(purge) \
|