Skip to content

Commit 37b0397

Browse files
committed
[GR-14384] Set native pointer on TO_NATIVE for methods wrapper.
PullRequest: graalpython/431
2 parents c930fc8 + 57d085c commit 37b0397

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -158,7 +158,8 @@ public Object access(MethodWrapper object) {
158158
CompilerDirectives.transferToInterpreterAndInvalidate();
159159
toPyObjectNode = insert(ToPyObjectNode.create());
160160
}
161-
return toPyObjectNode.execute(object);
161+
object.setNativePointer(toPyObjectNode.execute(object));
162+
return object;
162163
}
163164
}
164165
}

0 commit comments

Comments
 (0)