Skip to content

Commit 0c611f6

Browse files
committed
Do not attach type to pointer to avoid allocation.
1 parent 872ec77 commit 0c611f6

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/capi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ PyObject* to_sulong(void *o) {
264264

265265
/** to be used from Java code only; reads native 'ob_type' field */
266266
PyTypeObject* get_ob_type(PyObject* obj) {
267-
return polyglot_from__typeobject(native_type_to_java(obj->ob_type));
267+
return native_type_to_java(obj->ob_type);
268268
}
269269

270270
/** to be used from Java code only; reads native 'tp_dict' field */

0 commit comments

Comments
 (0)