equal
deleted
inserted
replaced
2140 MutexLocker mu1(SystemDictionary_lock, THREAD); |
2140 MutexLocker mu1(SystemDictionary_lock, THREAD); |
2141 |
2141 |
2142 // See whether biased locking is enabled and if so set it for this |
2142 // See whether biased locking is enabled and if so set it for this |
2143 // klass. |
2143 // klass. |
2144 // Note that this must be done past the last potential blocking |
2144 // Note that this must be done past the last potential blocking |
2145 // point / safepoint. We enable biased locking lazily using a |
2145 // point / safepoint. We might enable biased locking lazily using a |
2146 // VM_Operation to iterate the SystemDictionary and installing the |
2146 // VM_Operation to iterate the SystemDictionary and installing the |
2147 // biasable mark word into each InstanceKlass's prototype header. |
2147 // biasable mark word into each InstanceKlass's prototype header. |
2148 // To avoid race conditions where we accidentally miss enabling the |
2148 // To avoid race conditions where we accidentally miss enabling the |
2149 // optimization for one class in the process of being added to the |
2149 // optimization for one class in the process of being added to the |
2150 // dictionary, we must not safepoint after the test of |
2150 // dictionary, we must not safepoint after the test of |