Skip to content

Commit eb5d058

Browse files
author
Pavel Marek
committed
[GR-19768] Update Truffle import.
PullRequest: fastr/2719
2 parents 70638f3 + 047a1ba commit eb5d058

File tree

7 files changed

+80
-18
lines changed

7 files changed

+80
-18
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ overlay : 'ea463d8103d5db63739861673964b3f5161088f5' }
1+
{ overlay : 'd4d5810e522af2d11fe33c4ef79817ba472e407c' }

com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/javaGD/SVGImageContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -67,6 +67,7 @@ public Graphics getGraphics() {
6767
protected void resetGraphics() {
6868
Document document = domImpl.createDocument(SVG_NS, "svg", null);
6969
this.graphics = new SVGGraphics2D(document);
70+
this.graphics.setSVGCanvasSize(size);
7071
defaultInitGraphics(this.graphics);
7172
}
7273

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Environment variables
2+
In this file, we enumerate all the fastr-related environment variables
3+
4+
## Build-time environment variables
5+
- `GNUR_HOME_BINARY`
6+
- A path to prebuilt GNU-R
7+
- See [Using pre-built GNU-R binary](building.md#GNU-R)
8+
- `FASTR_CC`
9+
- `FASTR_CXX`
10+
- `FASTR_FC`
11+
- FastR-specific C, C++, and Fortran compilers.
12+
- Used for building GNU-R from sources and/or when building native packages with FastR.
13+
- Do not use these env variables if you plan to use only one system-wide version of the toolchain.
14+
- `FASTR_RELEASE`
15+
- If set to `true`, a release version of FastR is built
16+
- See [Build modes](building.md#Build-modes).
17+
- `FASTR_NO_RECOMMENDED`
18+
- If set to `true`, no recommended packages are built
19+
- See [Build modes](building.md#Build-modes).
20+
- `FASTR_RECOMMENDED_BINARY`
21+
- A path to prebuilt recommended packages.
22+
- See [Caching recommended packages](building.md#Caching-recommended-packages).
23+
- `FASTR_CAPTURE_DEPENDENCIES`
24+
- List of dependencies to be bundled with FastR, separated by comma.
25+
- Used for release builds.
26+
- See [Build modes](building.md#Build-modes).
27+
28+
## Environment variables for development
29+
- `ECLIPSE_EXE`
30+
- Path to eclipse executable used for `mx eclipseformat` or `mx checkstyle`.
31+
32+
## Run-time environment variables
33+
- `FASTR_MRAN_MIRROR`
34+
- MRAN mirror used by FastR for installing packages.
35+
- If this env var is set, the package installation works as if calling `install.packages(..., repos=Sys.getenv('FASTR_PKGS_CACHE_OPT'))`.
36+
- `FASTR_REPOS`
37+
- name=value pairs for setting R repositories.
38+
- Will be used for something like `options(repos = ...)` in R.
39+
- Example: `FASTR_REPOS=file://home/pmarek/dev/fastr/com.oracle.truffle.r.test.native/packages/repo,CRAN=file://home/pmarek/minicran/2021-02-01`.
40+
- Used by `mx pkgtest` and `mx r-pkgcache` commands.
41+
- For more info run `mx pkgtest --help`.
42+
- `FASTR_OPTION_<option>=<value>`
43+
- With this pattern, you can pass an option to FastR.
44+
- Equivalent to `$GRAALVM_HOME/bin/R --R.<option>=<value>`.
45+
- E.g. `FASTR_OPTION_PrintErrorStacktracesToFile=true`.
46+
- See `com.oracle.truffle.r.runtime.context.FastROptions`.
47+
- `FASTR_PKGS_CACHE_OPT`
48+
- The location, and other properties of package cache directory used by `mx r-pkgcache`, and `mx pkgtest` commands.
49+
- Example: `export FASTR_PKGS_CACHE_OPT='dir=$HOME/fastr_pkgcache,vm=fastr,sync=TRUE'`.
50+
- `dir` points to the directory where the cache should exist, created if necessary.
51+
- `vm` is either `fastr` or `gnur`
52+
- `sync` is either `TRUE` or `FALSE`. If `TRUE`, the write access to the package cache is synchronized.
53+
- `R_GCTORTURE=<steps>`/`FASTR_GCTORTURE=<steps>`
54+
- After `steps` NFI upcalls, GC will be invoked.
55+
- Can be used for debugging problems with "Unknown native references".
56+
- See `com.oracle.truffle.r.runtime.context.GCTortureState`.
57+
- `GDLOG`
58+
- See `com.oracle.truffle.r.ffi.impl.javaGD.LoggingGD.java`
59+
- `JAVAGD_CLASS_NAME`
60+
- See `org.rosuda.javaGD/src/org/rosuda/javaGD/GDInterface.java`

graal_common.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,18 @@
8585
"Dumping debug output to '(?P<filename>[^']+)'"
8686
],
8787
"deps": {
88-
"COMMENT.common": [
89-
"pip:isort is a dependency of pip:pylint. The explicit dependency on the pip package works around",
90-
"https://bugzilla.redhat.com/show_bug.cgi?id=1710221 on older Redhat-based systems, and doesn't",
91-
"hurt on others."
92-
],
9388
"common": {
9489
"timelimit": "30:00",
9590
"environment": {
96-
"MX_PYTHON": "python3"
91+
"MX_PYTHON": "python3.8"
9792
},
9893
"packages": {
99-
"pip:isort": "==4.3.19",
100-
"pip:logilab-common": "==1.4.4",
101-
"pip:pylint": "==1.9.3",
94+
"python3": "==3.8.10",
95+
"pip:pylint": "==2.4.4",
10296
"pip:lazy-object-proxy": "==1.6.0",
10397
"pip:ninja_syntax": "==1.7.2"
104-
}
98+
},
99+
"python_version": "3"
105100
},
106101
"linux": {
107102
"packages": {
@@ -132,6 +127,14 @@
132127
},
133128
"environment": {
134129
"ECLIPSE_EXE": "$ECLIPSE/eclipse"
130+
},
131+
"COMMENT.eclipse_org": [
132+
"Coordinates for downloading same version as above directly from eclipse.org (used by GitHub actions).",
133+
"Template URL: https://archive.eclipse.org/eclipse/downloads/drops4/R-<eclipse_org.version>-<eclipse_org.timestamp>/eclipse-SDK-<eclipse_org.version>-linux-gtk-x86_64.tar.gz"
134+
],
135+
"eclipse_org": {
136+
"version": "4.14",
137+
"timestamp": "201912100610"
135138
}
136139
},
137140
"jdt": {

mx.fastr/mx_fastr_dists.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def mx_register_dynamic_suite_constituents(register_project, register_distributi
217217
'bin/Rscript',
218218
'bin/R',
219219
],
220-
include_in_polyglot=False,
221220
launcher_configs=[
222221
mx_sdk.LanguageLauncherConfig(
223222
destination='bin/RMain',

mx.fastr/native-image.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Args = -H:MaxRuntimeCompileMethods=20000 \
1717
-H:+TruffleCheckBlockListMethods \
1818
-H:EnableURLProtocols=http,ftp,https \
1919
-H:-UseServiceLoaderFeature \
20-
--initialize-at-run-time=java.awt,sun.awt,javax.imageio,com.sun.imageio.plugins.jpeg \
21-
--initialize-at-build-time=sun.font,sun.java2d,java.awt.RenderingHints,sun.awt.SunHints
20+
--initialize-at-run-time=java.awt,sun.awt,javax.imageio,com.sun.imageio.plugins.jpeg,sun.java2d,sun.font
2221

2322
ExcludeFromAll=true

mx.fastr/suite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
suite = {
2-
"mxversion" : "5.316.14",
2+
"mxversion" : "6.0.1",
33
"name" : "fastr",
44
"versionConflictResolution" : "latest",
55
"imports" : {
@@ -9,7 +9,7 @@
99
"subdir" : True,
1010
# The version must be the same as the version of Sulong
1111
# TRUFFLE REVISION (note: this is a marker for script that can update this)
12-
"version" : "037265952d2d0d543c0983d470659ec629084069",
12+
"version" : "cf2980ba2e8ffd62943c57edfbd95a2594d63eac",
1313
"urls" : [
1414
{"url" : "https://github.com/graalvm/graal", "kind" : "git"},
1515
{"url" : "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind" : "binary"},
@@ -20,7 +20,7 @@
2020
"subdir" : True,
2121
# The version must be the same as the version of Truffle
2222
# TRUFFLE REVISION (note: this is a marker for script that can update this)
23-
"version" : "037265952d2d0d543c0983d470659ec629084069",
23+
"version" : "cf2980ba2e8ffd62943c57edfbd95a2594d63eac",
2424
"urls" : [
2525
{"url" : "https://github.com/graalvm/graal", "kind" : "git"},
2626
{"url" : "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind" : "binary"},

0 commit comments

Comments
 (0)