Skip to content

Commit 298f286

Browse files
committed
Move logging last in PythonObjectReference ctor
1 parent e96d0f8 commit 298f286

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ private PythonObjectReference(HandleContext handleContext, PythonNativeWrapper r
216216
super(handleContext, referent);
217217
this.pointer = pointer;
218218
this.strongReference = strong ? referent : null;
219+
referent.ref = this;
220+
this.handleTableIndex = handleTableIndex;
219221
if (LOGGER.isLoggable(Level.FINE)) {
220222
LOGGER.fine(PythonUtils.formatJString("new %s", toString()));
221223
}
222-
referent.ref = this;
223-
this.handleTableIndex = handleTableIndex;
224224
}
225225

226226
static PythonObjectReference create(HandleContext handleContext, PythonAbstractObjectNativeWrapper referent, boolean strong, long pointer, int idx) {

0 commit comments

Comments
 (0)