Skip to content

Commit 2eeb883

Browse files
committed
Merge branch 'origin/master' into release/graal-vm/1.0
2 parents e9b839c + 2a80638 commit 2eeb883

File tree

341 files changed

+6848
-2281
lines changed

Some content is hidden

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

341 files changed

+6848
-2281
lines changed

.hgtags

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

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11

22
# 1.0 RC 5
33

4+
New features
5+
6+
* Script that configures FastR for the current system (jre/languages/R/bin/configure_fastr)
7+
* allows to pass additional arguments for the underlying configure script
8+
* by default uses the following arguments: --with-x=no --with-aqua=no --enable-memory-profiling FFLAGS=-O2
9+
410
Updates in interop:
511

612
* R code evaluated via interop never returns a Java primitive type, but always a vector
713
* Vectors of size 1 that do not contain NA can be unboxed
814
* Sending the READ message to an atomic R vector (array subscript in most languages) gives
915
* Java primitive type as long as the value is not `NA`
10-
* a special value that responds to `IS_NULL` with `true`. If this value is passed back to R it behaves as `NA` again
16+
* if the value is `NA`, a special value that responds to `IS_NULL` with `true`. If this value is passed back to R it behaves as `NA` again
1117
* Note that sending the READ message to a list, environment, or other heterogenous data structure never gives atomic Java type but a primitive R vector
1218

19+
Bug fixes:
20+
21+
* Various smaller issues discovered during testing of CRAN packages.
22+
1323
# 1.0 RC 4
1424

1525
# 1.0 RC 3

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ The access point for contributions, issues and questions about FastR is the [Git
121121

122122
## Troubleshooting
123123

124+
### GNU-R build fails
125+
126+
GNU-R is built as part of the FastR build and therefore all GNU-R dependencies are required.
127+
The output from GNU-R configuration is logged in `libdownloads/R-3.4.0/gnur_configure.log`.
128+
124129
### Build fails when generating R grammar
125130

126131
This problem manifests by the following error message in the build output:
@@ -141,3 +146,10 @@ export LANG=en_US.UTF-8
141146
export LC_ALL=en_US.UTF-8
142147
export LC_CTYPE=en_US.UTF-8
143148
```
149+
150+
Note: you may need to install `locale` and run the following before setting the above env variables:
151+
152+
```
153+
locale en_US.UTF-8
154+
```
155+

Rpkgsource/.project

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

ci.hocon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include "ci_common/common.hocon"
88
# The standard set of gate builds. N.B. the style/builtin checks are only run on Linux as they are not OS-dependent.
99

1010
# in case you want to enforce specific overlay commit, uncomment:
11-
overlay = "1823c758582f31386f8ba4d89157265a23cebd04"
11+
# overlay = "1823c758582f31386f8ba4d89157265a23cebd04"
1212
builds = [
1313
${gateTestLinux} {capabilities : [linux, amd64, fast], targets : [gate], name: "gate-test-linux-amd64"}
1414
${gateTestNoSpecialsLinux} {capabilities : [linux, amd64, fast], targets : [gate], name: "gate-test-linux-amd64-nospecials"}

ci_common/common.hocon

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# java 7 is needed by Truffle (for now)
22
java7 : {name : oraclejdk, version : "7", platformspecific: true}
33
# java 8 must be a jvmci enabled variant
4-
java8 : {name : labsjdk, version : "8u172-jvmci-0.46", platformspecific: true}
4+
java8 : {name : labsjdk, version : "8u172-jvmci-0.47", platformspecific: true}
55
java9 : {name : oraclejdk, version : "9.0.4+11", platformspecific: true}
66

77
java8Downloads : {
@@ -35,10 +35,10 @@ logfiles : [
3535
"com.oracle.truffle.r.test.native/embedded/*.output"
3636
"com.oracle.truffle.r.test.native/embedded/src/*.output"
3737
# Uncomment to debug pkgtest issues, produces lot of logs!
38-
# "test.fastr/*/*.Rout"
39-
# "test.fastr/*/*-tests/*.Rout"
40-
# "test.gnur/*/*.Rout"
41-
# "test.gnur/*/*-tests/*.Rout"
38+
"test.fastr/**/*.Rout"
39+
"test.fastr/**/*-tests/*.Rout"
40+
"test.gnur/**/*.Rout"
41+
"test.gnur/**/*-tests/*.Rout"
4242
]
4343

4444
# This is needed by all (Linux) builds but is specific to the module system employed
@@ -91,7 +91,7 @@ common : ${java8Downloads} ${packagesLinux} {
9191
# the "mx" tool. This defines a common prefix for all gate commands. The "-t"
9292
# arg indicates the exact set of gate "tasks" that will be run.
9393

94-
gateCmd : ["mx", "-v", "--strict-compliance", "rgate", "--strict-mode", "-t"]
94+
gateCmd : ["mx", "-v", "--strict-compliance", "rgate", "-B=--force-deprecation-as-warning", "--strict-mode", "-t"]
9595

9696
# currently disabled gate commands: FindBugs,Checkheaders,Distribution Overlap Check
9797

@@ -165,6 +165,8 @@ gateStyle : ${common} {
165165
}
166166
run : [
167167
${gateCmd} ["Versions,JDKReleaseInfo,Pylint,Canonicalization Check,BuildJavaWithJavac,IDEConfigCheck,CodeFormatCheck,Checkstyle,Copyright check,UnitTests: ExpectedTestOutput file check"]
168+
["mx", "clean", "--no-native"]
169+
${gateCmd} ["BuildWithEcj"]
168170
]
169171
}
170172

com.oracle.truffle.r.engine/src/com/oracle/truffle/r/engine/EngineRootNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import com.oracle.truffle.r.runtime.context.RContext;
4848
import com.oracle.truffle.r.runtime.data.RNull;
4949
import com.oracle.truffle.r.runtime.interop.R2Foreign;
50-
import com.oracle.truffle.r.runtime.interop.R2ForeignNodeGen;
5150
import com.oracle.truffle.r.runtime.nodes.RNode;
5251
import com.oracle.truffle.r.runtime.nodes.RSyntaxNode;
5352

com.oracle.truffle.r.engine/src/com/oracle/truffle/r/engine/RRuntimeASTAccessImpl.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@ public RPairList getSyntaxCaller(RCaller rl) {
146146
while (call.isPromise()) {
147147
call = call.getParent();
148148
}
149-
RSyntaxElement syntaxNode = call.getSyntaxNode();
150-
return RDataFactory.createLanguage(getOrCreateLanguageClosure(((RSyntaxNode) syntaxNode).asRNode()));
149+
if (call.isValidCaller()) {
150+
RSyntaxElement syntaxNode = call.getSyntaxNode();
151+
return RDataFactory.createLanguage(getOrCreateLanguageClosure(((RSyntaxNode) syntaxNode).asRNode()));
152+
} else {
153+
return null;
154+
}
151155
}
152156

153157
private static RBaseNode checkBuiltin(RBaseNode bn) {

com.oracle.truffle.r.engine/src/com/oracle/truffle/r/engine/interop/ListMR.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import com.oracle.truffle.r.runtime.interop.Foreign2R;
5656
import com.oracle.truffle.r.runtime.interop.Foreign2RNodeGen;
5757
import com.oracle.truffle.r.runtime.interop.R2Foreign;
58-
import com.oracle.truffle.r.runtime.interop.R2ForeignNodeGen;
5958

6059
public class ListMR {
6160

com.oracle.truffle.r.engine/src/com/oracle/truffle/r/engine/interop/RAbstractVectorAccessFactory.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
import com.oracle.truffle.r.runtime.interop.Foreign2R;
6767
import com.oracle.truffle.r.runtime.interop.Foreign2RNodeGen;
6868
import com.oracle.truffle.r.runtime.interop.R2Foreign;
69-
import com.oracle.truffle.r.runtime.interop.R2ForeignNodeGen;
7069
import com.oracle.truffle.r.runtime.nodes.RSyntaxNode;
7170

7271
abstract class InteropRootNode extends RootNode {

0 commit comments

Comments
 (0)