Skip to content

Commit 9baaf7c

Browse files
committed
Update HPy inlined files: f6114734
1 parent 3be640b commit 9baaf7c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+15
-81
lines changed

graalpython/com.oracle.graal.python.hpy.llvm/include/hpy/hpymodule.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef struct {
119119
* structure that will serve as a specification of the module that should be
120120
* created by the interpreter. HPy supports only multi-phase module
121121
* initialization (PEP 451). Any module initialization code can be added
122-
* to the HPy_mod_execute slot of the module if needed.
122+
* to the HPy_mod_exec slot of the module if needed.
123123
*
124124
* Example:
125125
*
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
// automatically generated by setup.py:get_scm_config()
3-
#define HPY_VERSION "0.9.0rc2"
4-
#define HPY_GIT_REVISION "5ddcbc8d"
3+
#define HPY_VERSION "0.9.0"
4+
#define HPY_GIT_REVISION "f6114734"

graalpython/com.oracle.graal.python.jni/src/debug/debug_ctx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ const char *debug_ctx_Type_GetName(HPyContext *dctx, DHPy type)
559559
ctx_info->is_valid = false;
560560
const char *name = HPyType_GetName(uctx, uh_type);
561561
ctx_info->is_valid = true;
562-
n_name = strlen(name);
562+
n_name = strlen(name) + 1;
563563
return (const char *)protect_and_associate_data_ptr(type, (void *)name, n_name);
564564
}
565565

graalpython/lib-graalpython/modules/hpy/devel/src/runtime/structseq.c

+9-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,15 @@ HPyStructSequence_New(HPyContext *ctx, HPy type, HPy_ssize_t nargs, HPy *args)
224224
tp = (PyTypeObject *)_h2py(type);
225225
name = PyUnicode_FromStringAndSize(s_n_fields, sizeof(s_n_fields));
226226
// CPython also accesses the dict directly
227-
v = PyDict_GetItemWithError(tp->tp_dict, name);
227+
#if PY_VERSION_HEX >= 0x030C0000
228+
PyObject *dict = PyType_GetDict(tp);
229+
#else
230+
PyObject *dict = tp->tp_dict;
231+
#endif
232+
v = PyDict_GetItemWithError(dict, name);
233+
#if PY_VERSION_HEX >= 0x030C0000
234+
Py_DECREF(dict);
235+
#endif
228236
Py_DECREF(name);
229237
if (v == NULL && !PyErr_Occurred()) {
230238
goto type_error;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
# automatically generated by setup.py:get_scm_config()
3-
__version__ = "0.9.0rc2"
4-
__git_revision__ = "5ddcbc8d"
3+
__version__ = "0.9.0"
4+
__git_revision__ = "f6114734"

graalpython/lib-graalpython/modules/hpy/trace/leakdetector.py

-43
This file was deleted.

graalpython/lib-graalpython/modules/hpy/trace/pytest.py

-31
This file was deleted.

0 commit comments

Comments
 (0)