Skip to content

Commit 1334b20

Browse files
committed
Rename method to make intent clear.
1 parent ad0baf3 commit 1334b20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ Object doGeneric(Object builtinTypesArrayPointer) {
18491849

18501850
// create the wrapper and register the pointer
18511851
LOGGER.fine(() -> "setting type store for built-in class " + name + " to " + PythonUtils.formatPointer(typeStructPtr));
1852-
PythonClassNativeWrapper.wrapNative(clazz, TypeNodes.GetNameNode.executeUncached(clazz), typeStructPtr);
1852+
PythonClassNativeWrapper.wrapStaticTypeStructForManagedClass(clazz, TypeNodes.GetNameNode.executeUncached(clazz), typeStructPtr);
18531853

18541854
builtinTypes.add(Pair.create(clazz, typeStructPtr));
18551855
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public static PythonClassNativeWrapper wrap(PythonManagedClass obj, TruffleStrin
9696
}
9797

9898
/**
99-
* Creates a wrapper that uses an existing native object as native replacement object.
99+
* Creates a wrapper that uses existing native memory as native replacement object.
100100
*/
101-
public static void wrapNative(PythonManagedClass clazz, TruffleString name, Object pointer) {
101+
public static void wrapStaticTypeStructForManagedClass(PythonManagedClass clazz, TruffleString name, Object pointer) {
102102
/*
103103
* This *MUST NOT* happen, otherwise we would allocate a fresh native type store and then
104104
* the native pointer of the wrapper would not be equal to the corresponding native global

0 commit comments

Comments
 (0)