< prev index next >

src/hotspot/cpu/x86/globals_x86.hpp

Print this page
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().


  77 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
  78 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
  79 define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);
  80 
  81 define_pd_global(bool, RewriteBytecodes,     true);
  82 define_pd_global(bool, RewriteFrequentPairs, true);
  83 
  84 // GC Ergo Flags
  85 define_pd_global(size_t, CMSYoungGenPerWorker, 64*M);  // default max size of CMS young gen, per GC worker thread
  86 
  87 define_pd_global(uintx, TypeProfileLevel, 111);
  88 
  89 define_pd_global(bool, CompactStrings, true);
  90 
  91 define_pd_global(bool, PreserveFramePointer, false);
  92 
  93 define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
  94 
  95 #if defined(_LP64) || defined(_WINDOWS)
  96 define_pd_global(bool, ThreadLocalHandshakes, true);







  97 #else
  98 // get_thread() is slow on linux 32 bit, therefore off by default
  99 define_pd_global(bool, ThreadLocalHandshakes, false);




 100 #endif
 101 
 102 #define ARCH_FLAGS(develop, \
 103                    product, \
 104                    diagnostic, \
 105                    experimental, \
 106                    notproduct, \
 107                    range, \
 108                    constraint, \
 109                    writeable) \
 110                                                                             \
 111   develop(bool, IEEEPrecision, true,                                        \
 112           "Enables IEEE precision (for INTEL only)")                        \
 113                                                                             \
 114   product(bool, UseStoreImmI16, true,                                       \
 115           "Use store immediate 16-bits value instruction on x86")           \
 116                                                                             \
 117   product(intx, UseAVX, 3,                                                  \
 118           "Highest supported AVX instructions set on x86/x64")              \
 119           range(0, 99)                                                      \




  77 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
  78 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
  79 define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);
  80 
  81 define_pd_global(bool, RewriteBytecodes,     true);
  82 define_pd_global(bool, RewriteFrequentPairs, true);
  83 
  84 // GC Ergo Flags
  85 define_pd_global(size_t, CMSYoungGenPerWorker, 64*M);  // default max size of CMS young gen, per GC worker thread
  86 
  87 define_pd_global(uintx, TypeProfileLevel, 111);
  88 
  89 define_pd_global(bool, CompactStrings, true);
  90 
  91 define_pd_global(bool, PreserveFramePointer, false);
  92 
  93 define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
  94 
  95 #if defined(_LP64) || defined(_WINDOWS)
  96 define_pd_global(bool, ThreadLocalHandshakes, true);
  97 // ObjectMonitor ref_count is implemented in LP64 C2 fast_lock()
  98 // and fast_unlock() so we don't need the handshake by default.
  99 #ifdef _LP64
 100 define_pd_global(bool, HandshakeAfterDeflateIdleMonitors, false);
 101 #else
 102 define_pd_global(bool, HandshakeAfterDeflateIdleMonitors, true);
 103 #endif
 104 #else
 105 // get_thread() is slow on linux 32 bit, therefore off by default
 106 define_pd_global(bool, ThreadLocalHandshakes, false);
 107 // ObjectMonitor ref_count not implemented in C2 fast_lock() or
 108 // fast_unlock() so use a handshake for safety.
 109 // Will use a safepoint instead of a handshake on this platform.
 110 define_pd_global(bool, HandshakeAfterDeflateIdleMonitors, true);
 111 #endif
 112 
 113 #define ARCH_FLAGS(develop, \
 114                    product, \
 115                    diagnostic, \
 116                    experimental, \
 117                    notproduct, \
 118                    range, \
 119                    constraint, \
 120                    writeable) \
 121                                                                             \
 122   develop(bool, IEEEPrecision, true,                                        \
 123           "Enables IEEE precision (for INTEL only)")                        \
 124                                                                             \
 125   product(bool, UseStoreImmI16, true,                                       \
 126           "Use store immediate 16-bits value instruction on x86")           \
 127                                                                             \
 128   product(intx, UseAVX, 3,                                                  \
 129           "Highest supported AVX instructions set on x86/x64")              \
 130           range(0, 99)                                                      \


< prev index next >