Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
f0180643
Commit
f0180643
authored
7 years ago
by
Miloslav Metelka
Browse files
Options
Downloads
Patches
Plain Diff
Changes to run FastR on JDK9.
parent
01901dca
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/DelegateRConnection.java
+3
-31
3 additions, 31 deletions
...om/oracle/truffle/r/runtime/conn/DelegateRConnection.java
mx.fastr/suite.py
+0
-8
0 additions, 8 deletions
mx.fastr/suite.py
with
3 additions
and
39 deletions
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/DelegateRConnection.java
+
3
−
31
View file @
f0180643
...
...
@@ -45,9 +45,6 @@ import com.oracle.truffle.r.runtime.RInternalError;
import
com.oracle.truffle.r.runtime.conn.ConnectionSupport.BaseRConnection
;
import
com.oracle.truffle.r.runtime.data.RDataFactory
;
import
com.oracle.truffle.r.runtime.data.model.RAbstractStringVector
;
import
com.sun.istack.internal.NotNull
;
import
sun.nio.cs.StreamDecoder
;
/**
* Actually performs the I/O operations for a connections.<br>
...
...
@@ -260,7 +257,7 @@ abstract class DelegateRConnection implements RConnection, ByteChannel {
* @throws IOException
*/
@TruffleBoundary
public
static
void
writeCharHelper
(
@NotNull
WritableByteChannel
channel
,
@NotNull
String
s
,
int
pad
,
String
eos
)
throws
IOException
{
public
static
void
writeCharHelper
(
WritableByteChannel
channel
,
String
s
,
int
pad
,
String
eos
)
throws
IOException
{
final
byte
[]
bytes
=
s
.
getBytes
();
final
byte
[]
eosBytes
=
eos
!=
null
?
eos
.
getBytes
()
:
null
;
...
...
@@ -332,31 +329,6 @@ abstract class DelegateRConnection implements RConnection, ByteChannel {
return
new
String
(
buf
.
array
(),
0
,
j
);
}
/**
* Reads a specified number of characters (not bytes).<br>
* <p>
* This method is meant to be used if R's function {@code readChar} is called with parameter
* {@code useBytes=FALSE}.
* </p>
*
* @param nchars The number of characters to read.
* @param decoder The stream decoder to use (must not be {@code null}).
* @throws IOException
*/
public
static
String
readCharHelper
(
int
nchars
,
StreamDecoder
decoder
)
throws
IOException
{
// we need a decoder
char
[]
chars
=
new
char
[
nchars
];
decoder
.
read
(
chars
);
int
j
=
0
;
for
(;
j
<
chars
.
length
;
j
++)
{
// strings end at 0
if
(
chars
[
j
]
==
0
)
{
break
;
}
}
return
new
String
(
chars
,
0
,
j
);
}
/**
* Implements standard seeking behavior.<br>
* <p>
...
...
@@ -429,9 +401,9 @@ abstract class DelegateRConnection implements RConnection, ByteChannel {
/**
* Creates the stream decoder on demand and returns it.
*/
protected
StreamDeco
der
getDecoder
(
int
bufSize
)
{
protected
Rea
der
getDecoder
(
int
bufSize
)
{
CharsetDecoder
charsetEncoder
=
base
.
getEncoding
().
newDecoder
().
onMalformedInput
(
CodingErrorAction
.
REPLACE
).
onUnmappableCharacter
(
CodingErrorAction
.
REPLACE
);
return
StreamDecoder
.
forDeco
der
(
this
,
charsetEncoder
,
bufSize
);
return
Channels
.
newRea
der
(
this
,
charsetEncoder
,
bufSize
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
mx.fastr/suite.py
+
0
−
8
View file @
f0180643
...
...
@@ -80,11 +80,6 @@ suite = {
"
sha1
"
:
"
0baa82bff19059401e90e1b90020beb9c96305d7
"
,
},
"
JDK_TOOLS
"
:
{
"
path
"
:
"
${JAVA_HOME}/lib/tools.jar
"
,
"
sha1
"
:
"
NOCHECK
"
,
},
"
ANTLR-C-3.5
"
:
{
"
path
"
:
"
libdownloads/antlr-complete-3.5.1.jar
"
,
"
urls
"
:
[
"
http://central.maven.org/maven2/org/antlr/antlr-complete/3.5.1/antlr-complete-3.5.1.jar
"
],
...
...
@@ -103,7 +98,6 @@ suite = {
"
com.oracle.truffle.r.parser.processor
"
:
{
"
sourceDirs
"
:
[
"
src
"
],
"
dependencies
"
:
[
"
JDK_TOOLS
"
,
"
ANTLR-3.5
"
,
"
ANTLR-C-3.5
"
,
],
...
...
@@ -295,7 +289,6 @@ suite = {
"
subDir
"
:
"
truffle
"
,
"
dependencies
"
:
[
"
com.oracle.truffle.r.parser.processor
"
],
"
exclude
"
:
[
"
JDK_TOOLS
"
,
"
ANTLR-3.5
"
,
"
ANTLR-C-3.5
"
,
],
...
...
@@ -308,7 +301,6 @@ suite = {
"
dependencies
"
:
[
"
com.oracle.truffle.r.engine
"
,
"
com.oracle.truffle.r.runtime.ffi
"
],
"
mainClass
"
:
"
com.oracle.truffle.r.engine.shell.RCommand
"
,
"
exclude
"
:
[
"
JDK_TOOLS
"
,
"
truffle:JLINE
"
,
"
ANTLR-C-3.5
"
,
"
ANTLR-3.5
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment