private void markAllSpecsPreInstrumented() { // Technically, synchronization isn't needed here if this method is only called // during construction, in a 1.5 JVM, and if specLock is final, because the JMM guarantees // initialization safety w/o synchronization under those conditions synchronized (specLock) { for (Iterator i = classSpecs.values().iterator(); i.hasNext();) { TransparencyClassSpec s = (TransparencyClassSpec) i.next(); s.markPreInstrumented(); } } }
private void markAllSpecsPreInstrumented() { // Technically, synchronization isn't needed here if this method is only called // during construction, in a 1.5 JVM, and if specLock is final, because the JMM guarantees // initialization safety w/o synchronization under those conditions synchronized (specLock) { for (Iterator i = classSpecs.values().iterator(); i.hasNext();) { TransparencyClassSpec s = (TransparencyClassSpec) i.next(); s.markPreInstrumented(); } } }