src/hotspot/share/classfile/systemDictionary.cpp
changeset 55537 4309fedaf7dc
parent 55419 3e08fa647eea
child 55635 0fb70c9118ce
equal deleted inserted replaced
55536:8313c42345d5 55537:4309fedaf7dc
  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