diff --git a/src/org/python/core/PyType.java b/src/org/python/core/PyType.java index 076c1dc..95827ed 100644 --- a/src/org/python/core/PyType.java +++ b/src/org/python/core/PyType.java @@ -1542,10 +1542,7 @@ public static PyType fromClass(Class c, boolean hardRef) { PyType type = getClassToType().get(c); if (type != null) { - // synchronize on the c here to make sure the compiler does not re-order - synchronized (c) { - return type; - } + return type; } // We haven't seen this class before, so its type needs to be created. If it's being // exposed as a Java class, defer processing its inner types until it's completely