Skip to content

Commit d53e439

Browse files
committed
Remove unnecessary call to VarHandle.storeStoreFence
1 parent a015473 commit d53e439

File tree

1 file changed

+1
-3
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi

1 file changed

+1
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/CApiContext.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,7 @@ public CApiContext(PythonContext context, Object llvmLibrary, boolean useNativeB
309309
* Note: this does intentionally not use 'PythonObjectNativeWrapper.wrap' because the
310310
* wrapper must not be reachable from the Python object since the singletons are shared.
311311
*/
312-
PythonObjectNativeWrapper singletonWrapper = new PythonObjectNativeWrapper(CONTEXT_INSENSITIVE_SINGLETONS[i]);
313-
VarHandle.storeStoreFence();
314-
singletonNativePtrs[i] = singletonWrapper;
312+
singletonNativePtrs[i] = new PythonObjectNativeWrapper(CONTEXT_INSENSITIVE_SINGLETONS[i]);
315313
}
316314

317315
// initialize primitive native wrapper cache

0 commit comments

Comments
 (0)