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
45fb8e74
Commit
45fb8e74
authored
10 years ago
by
Adam Welc
Browse files
Options
Downloads
Patches
Plain Diff
Slow-pathed actual library loading only.
parent
c4da85ca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/ffi/jnr/JNR_RFFIFactory.java
+20
-4
20 additions, 4 deletions
...com/oracle/truffle/r/runtime/ffi/jnr/JNR_RFFIFactory.java
with
20 additions
and
4 deletions
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/ffi/jnr/JNR_RFFIFactory.java
+
20
−
4
View file @
45fb8e74
...
...
@@ -59,9 +59,13 @@ public class JNR_RFFIFactory extends RFFIFactory implements RFFI, BaseRFFI, Linp
private
static
LibCX
libcx
;
@SlowPath
private
static
LibCX
createAndLoadLib
()
{
return
LibraryLoader
.
create
(
LibCX
.
class
).
load
(
"c"
);
}
static
LibCX
libcx
()
{
if
(
libcx
==
null
)
{
libcx
=
LibraryLoader
.
create
(
LibCX
.
class
).
load
(
"c"
);
libcx
=
createAndLoadLib
(
);
}
return
libcx
;
}
...
...
@@ -195,9 +199,13 @@ public class JNR_RFFIFactory extends RFFIFactory implements RFFI, BaseRFFI, Linp
private
static
Lapack
lapack
;
@SlowPath
private
static
Lapack
createAndLoadLib
()
{
return
LibraryLoader
.
create
(
Lapack
.
class
).
load
(
"Rlapack"
);
}
static
Lapack
lapack
()
{
if
(
lapack
==
null
)
{
lapack
=
LibraryLoader
.
create
(
Lapack
.
class
).
load
(
"Rlapack"
);
lapack
=
createAndLoadLib
(
);
}
return
lapack
;
}
...
...
@@ -385,9 +393,13 @@ public class JNR_RFFIFactory extends RFFIFactory implements RFFI, BaseRFFI, Linp
private
static
Linpack
linpack
;
@SlowPath
private
static
Linpack
createAndLoadLib
()
{
return
LibraryLoader
.
create
(
Linpack
.
class
).
load
(
"R"
);
}
static
Linpack
linpack
()
{
if
(
linpack
==
null
)
{
linpack
=
LibraryLoader
.
create
(
Linpack
.
class
).
load
(
"R"
);
linpack
=
createAndLoadLib
(
);
}
return
linpack
;
}
...
...
@@ -453,9 +465,13 @@ public class JNR_RFFIFactory extends RFFIFactory implements RFFI, BaseRFFI, Linp
}
@SlowPath
private
static
UserRng
createAndLoadLib
()
{
return
LibraryLoader
.
create
(
UserRng
.
class
).
load
(
libPath
);
}
static
UserRng
userRng
()
{
if
(
userRng
==
null
)
{
userRng
=
LibraryLoader
.
create
(
UserRng
.
class
).
load
(
libPath
);
userRng
=
createAndLoadLib
(
);
}
return
userRng
;
}
...
...
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