Skip to content

Commit 6fa29ce

Browse files
eregontimfel
authored andcommitted
[GR-63253] Adopt the new unchained standalones for GraalPy
PullRequest: graalpython/3734
2 parents 1d082f7 + 2a26805 commit 6fa29ce

File tree

16 files changed

+300
-268
lines changed

16 files changed

+300
-268
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "33e51c9c3ed51884956280ef1d96f88f96669921" }
1+
{ "overlay": "c228c8e9f7b989c0a911200c91f7ab92a1d7d46d" }

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ call_traverse(traverseproc traverse, PyObject *op, visitproc visit, void *arg)
5050
return 0;
5151
} else {
5252
if (_PyObject_IsFreed(op)) {
53-
PyTruffle_Log(PY_TRUFFLE_LOG_INFO,
53+
PyTruffle_Log(PY_TRUFFLE_LOG_FINE,
5454
"we tried to call tp_traverse on a freed object at %p (ctx %p)!",
5555
op, arg);
5656
return 0;
5757
}
5858
if (_PyObject_IsFreed((PyObject *)Py_TYPE(op))) {
59-
PyTruffle_Log(PY_TRUFFLE_LOG_INFO,
59+
PyTruffle_Log(PY_TRUFFLE_LOG_FINE,
6060
"we tried to call tp_traverse on an object at %p with a freed type at %p (ctx %p)!",
6161
op, Py_TYPE(op), arg);
6262
return 0;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,8 @@ _decref_notify(const PyObject *op, const Py_ssize_t updated_refcnt)
26882688
GraalPyTruffle_BulkNotifyRefCount(deferred_notify_ops, DEFERRED_NOTIFY_SIZE);
26892689
}
26902690
#else
2691-
GraalPyTruffle_BulkNotifyRefCount(&op, 1);
2691+
PyObject *nonConstOp = (PyObject *)op;
2692+
GraalPyTruffle_BulkNotifyRefCount(&nonConstOp, 1);
26922693
#endif
26932694
}
26942695
}

graalpython/lib-graalpython/modules/standalone/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ def build_binary(target_dir, ni, jc, modules_path, launcher_file, parsed_args):
418418
]
419419
cmd += [
420420
"--no-fallback",
421-
"-H:-CopyLanguageResources",
422421
"-H:+UnlockExperimentalVMOptions",
422+
"-H:-CopyLanguageResources",
423423
f"-H:ResourceConfigurationFiles={target_dir}/{NATIVE_IMAGE_RESOURCES_FILE}",
424424
"-o",
425425
output,

mx.graalpython/graalpython-svm-standalone

Lines changed: 0 additions & 6 deletions
This file was deleted.

mx.graalpython/jvm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
GRAALVM_SKIP_ARCHIVE=true
21
DYNAMIC_IMPORTS=/tools
3-
COMPONENTS=GraalVM Python,suite:tools
4-
INSTALLABLES=GraalVM Python
5-
BUILD_TARGETS=GRAALVM_STANDALONES
2+
BUILD_TARGETS=GRAALPY_JVM_STANDALONE
3+
EXCLUDE_TRUFFLE_RUNTIME=true

mx.graalpython/jvm-ce

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
GRAALVM_SKIP_ARCHIVE=true
21
DYNAMIC_IMPORTS=/tools,/compiler
3-
COMPONENTS=GraalVM Python,suite:tools,GraalVM compiler
4-
INSTALLABLES=GraalVM Python
5-
BUILD_TARGETS=GRAALVM_STANDALONES
2+
BUILD_TARGETS=GRAALPY_JVM_STANDALONE

mx.graalpython/jvm-ce-libgraal

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
GRAALVM_SKIP_ARCHIVE=true
21
DYNAMIC_IMPORTS=/tools,/compiler,/substratevm
3-
COMPONENTS=GraalVM Python,suite:tools,GraalVM compiler,SubstrateVM,LibGraal
2+
BUILD_TARGETS=GRAALPY_JVM_STANDALONE
3+
COMPONENTS=LibGraal
44
NATIVE_IMAGES=lib:jvmcicompiler
5-
INSTALLABLES=GraalVM Python
6-
BUILD_TARGETS=GRAALVM_STANDALONES
5+
GRAALVM_SKIP_ARCHIVE=true

mx.graalpython/jvm-ee

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
GRAALVM_SKIP_ARCHIVE=true
2-
DYNAMIC_IMPORTS=/tools,/graalpython-enterprise,/graal-enterprise,/vm-enterprise,/sulong-managed,/substratevm-enterprise
3-
COMPONENTS=GraalVM Python,suite:tools,GraalVM enterprise compiler,Truffle enterprise,GraalVM enterprise license files,LLVM Runtime Native Enterprise,SubstrateVM Enterprise
4-
NATIVE_IMAGES=false
5-
INSTALLABLES=GraalVM Python
6-
BUILD_TARGETS=GRAALVM_STANDALONES
7-
# NOTE: SVM EE is added as a workaround to tell the JVM standalone to be EE
1+
DYNAMIC_IMPORTS=/tools,/graal-enterprise,/truffle-enterprise,/vm-enterprise
2+
BUILD_TARGETS=GRAALPY_JVM_STANDALONE

mx.graalpython/jvm-ee-libgraal

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
GRAALVM_SKIP_ARCHIVE=true
2-
DYNAMIC_IMPORTS=/tools,/graalpython-enterprise,/graal-enterprise,/vm-enterprise,/sulong-managed,/substratevm-enterprise
3-
COMPONENTS=GraalVM Python,suite:tools,GraalVM enterprise compiler,Truffle enterprise,GraalVM enterprise license files,LLVM Runtime Native Enterprise,SubstrateVM Enterprise,LibGraal Enterprise
1+
DYNAMIC_IMPORTS=/tools,/graal-enterprise,/truffle-enterprise,/vm-enterprise,/substratevm-enterprise
2+
BUILD_TARGETS=GRAALPY_JVM_STANDALONE
3+
COMPONENTS=LibGraal Enterprise
44
NATIVE_IMAGES=lib:jvmcicompiler
5-
INSTALLABLES=GraalVM Python
6-
BUILD_TARGETS=GRAALVM_STANDALONES
5+
GRAALVM_SKIP_ARCHIVE=true

0 commit comments

Comments
 (0)