Skip to content

Commit a3e5133

Browse files
committed
Merge branch 'origin/master' into release/graal-vm/1.0
2 parents c30c0c8 + 8d8a6b8 commit a3e5133

File tree

310 files changed

+18525
-4283
lines changed

Some content is hidden

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

310 files changed

+18525
-4283
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ Python3.g4.stamp
5656
/*.err
5757
/graalpython/include/*
5858
/graalpython/com.oracle.graal.python.test/src/tests/cpyext/As_FileDescriptor_Testfile
59+
/.*.csv*

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Python Changelog
2+
3+
This changelog summarizes major changes between GraalVM versions of the Python
4+
language runtime. The main focus is on user-observable behavior of the engine.
5+
6+
## Version 1.0.0 RC2
7+
8+
* Updates to the polyglot and embedding APIs
9+
* Many additions to the language core implementation
10+
* Performance improvements to the parser
11+
* C-API improvements to compile and run simple C extensions
12+
* Support breakpoints on caught and uncaught exceptions in debugger
13+
14+
## Version 1.0.0 RC1
15+
16+
* LICENSE set to The Universal Permissive License (UPL), Version 1.0.

ci.jsonnet

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
overlay: "4c51f4dae2d670a4895aaafbe47780ac2541c008",
2+
overlay: "2081dc054251c6658f7ce8f4b6671a474edbf2f6",
33

44
// ======================================================================================================
55
//
@@ -23,7 +23,10 @@
2323
"2h": "2:00:00",
2424
"3h": "3:00:00",
2525
"4h": "4:00:00",
26-
"10h": "10:00:00"
26+
"8h": "8:00:00",
27+
"10h": "10:00:00",
28+
"16h": "16:00:00",
29+
"20h": "20:00:00",
2730
},
2831
TIME_LIMIT: TIME_LIMIT,
2932

@@ -142,6 +145,7 @@
142145
HOST_VM_CONFIG: "graal-core",
143146
},
144147
},
148+
graalCoreMixin: graalCoreMixin,
145149

146150
local sulongMixin = labsjdk8Mixin + {
147151
environment +: {

graalpython/com.oracle.graal.python.cext/include/Python.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@
107107
#include "pyfpe.h"
108108
#include "memoryobject.h"
109109

110-
#undef Py_NoValue
111-
#define Py_NoValue truffle_invoke(PY_TRUFFLE_CEXT, "Py_NoValue")
110+
#define PY_TRUFFLE_CEXT ((void*)polyglot_import("python_cext"))
111+
#define PY_BUILTIN ((void*)polyglot_import("python_builtins"))
112112

113-
#define PY_TRUFFLE_CEXT ((void*)truffle_import_cached("python_cext"))
114-
#define PY_BUILTIN ((void*)truffle_import_cached("python_builtins"))
113+
#undef Py_NoValue
114+
#define Py_NoValue UPCALL_CEXT_O("Py_NoValue")
115115

116116
// TODO: we must extend the refcounting behavior to support handles to managed objects
117117
#undef Py_DECREF
@@ -179,7 +179,7 @@ extern int PyTruffle_Arg_ParseTupleAndKeywords(PyObject *argv, PyObject *kwds, c
179179
#ifdef PyArg_ParseTuple
180180
#undef PyArg_ParseTuple
181181
#endif
182-
#define PyArg_ParseTuple(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, (char*[]) { NULL }, ##__VA_ARGS__)
182+
#define PyArg_ParseTuple(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, NULL, ##__VA_ARGS__)
183183

184184
#ifdef _PyArg_ParseTupleAndKeywordsFast
185185
#undef _PyArg_ParseTupleAndKeywordsFast
@@ -189,7 +189,7 @@ extern int PyTruffle_Arg_ParseTupleAndKeywords(PyObject *argv, PyObject *kwds, c
189189
#ifdef PyArg_Parse
190190
#undef PyArg_Parse
191191
#endif
192-
#define PyArg_Parse(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, (char*[]) { NULL }, __VA_ARGS__)
192+
#define PyArg_Parse(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, NULL, __VA_ARGS__)
193193

194194
extern PyObject * PyTruffle_Unicode_FromFormat(const char *fmt, int s, void* v0, void* v1, void* v2, void* v3, void* v4, void* v5, void* v6, void* v7, void* v8, void* v9, void* v10, void* v11, void* v12, void* v13, void* v14, void* v15, void* v16, void* v17, void* v18, void* v19);
195195
#define PyTruffle_Unicode_FromFormat_0(F1) PyTruffle_Unicode_FromFormat(F1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)

graalpython/com.oracle.graal.python.cext/include/truffle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void *truffle_deref_handle_for_managed(void *managed);
6161
void *truffle_import(const char *name); // renamed to polyglot_import
6262
void *truffle_import_cached(const char *name); // no replacement, use polyglot_import
6363

64-
void *truffle_address_to_function(void *address); // deprecated, use a typecast to function pointer instead
64+
void *truffle_address_to_function(void *address); // deprecated, does nothing
6565

6666
void *truffle_get_arg(int i); // renamed to polyglot_get_arg
6767

0 commit comments

Comments
 (0)