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
1b7db628
Commit
1b7db628
authored
8 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
add back JNI_Base TruffleBoundary
parent
40025e9b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.runtime.ffi/src/com/oracle/truffle/r/runtime/ffi/jni/JNI_Base.java
+11
-0
11 additions, 0 deletions
...fi/src/com/oracle/truffle/r/runtime/ffi/jni/JNI_Base.java
with
11 additions
and
0 deletions
com.oracle.truffle.r.runtime.ffi/src/com/oracle/truffle/r/runtime/ffi/jni/JNI_Base.java
+
11
−
0
View file @
1b7db628
...
...
@@ -25,10 +25,12 @@ package com.oracle.truffle.r.runtime.ffi.jni;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
com.oracle.truffle.api.CompilerDirectives.TruffleBoundary
;
import
com.oracle.truffle.r.runtime.ffi.BaseRFFI
;
public
class
JNI_Base
implements
BaseRFFI
{
public
static
class
JNI_GetpidNode
extends
GetpidNode
{
@TruffleBoundary
@Override
public
int
execute
()
{
return
native_getpid
();
...
...
@@ -36,6 +38,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_GetwdNode
extends
GetwdNode
{
@TruffleBoundary
@Override
public
String
execute
()
{
byte
[]
buf
=
new
byte
[
4096
];
...
...
@@ -53,6 +56,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_SetwdNode
extends
SetwdNode
{
@TruffleBoundary
@Override
public
int
execute
(
String
dir
)
{
return
native_setwd
(
dir
);
...
...
@@ -62,6 +66,7 @@ public class JNI_Base implements BaseRFFI {
public
static
class
JNI_ReadlinkNode
extends
ReadlinkNode
{
private
static
final
int
EINVAL
=
22
;
@TruffleBoundary
@Override
public
String
execute
(
String
path
)
throws
IOException
{
int
[]
errno
=
new
int
[]{
0
};
...
...
@@ -79,6 +84,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_MkdtempNode
extends
MkdtempNode
{
@TruffleBoundary
@Override
public
String
execute
(
String
template
)
{
/*
...
...
@@ -99,6 +105,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_MkdirNode
extends
MkdirNode
{
@TruffleBoundary
@Override
public
void
execute
(
String
dir
,
int
mode
)
throws
IOException
{
int
rc
=
native_mkdir
(
dir
,
mode
);
...
...
@@ -109,6 +116,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_ChmodNode
extends
ChmodNode
{
@TruffleBoundary
@Override
public
int
execute
(
String
path
,
int
mode
)
{
return
native_chmod
(
path
,
mode
);
...
...
@@ -116,6 +124,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_StrolNode
extends
StrolNode
{
@TruffleBoundary
@Override
public
long
execute
(
String
s
,
int
base
)
throws
IllegalArgumentException
{
int
[]
errno
=
new
int
[]{
0
};
...
...
@@ -129,6 +138,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_UnameNode
extends
UnameNode
{
@TruffleBoundary
@Override
public
UtsName
execute
()
{
return
JNI_UtsName
.
get
();
...
...
@@ -136,6 +146,7 @@ public class JNI_Base implements BaseRFFI {
}
public
static
class
JNI_GlobNode
extends
GlobNode
{
@TruffleBoundary
@Override
public
ArrayList
<
String
>
glob
(
String
pattern
)
{
return
JNI_Glob
.
glob
(
pattern
);
...
...
This diff is collapsed.
Click to expand it.
Julien Lopez
@jlopez
mentioned in commit
6589fe41
·
8 years ago
mentioned in commit
6589fe41
mentioned in commit 6589fe41527a661d0f93538f7e3ee3a37736bf47
Toggle commit list
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