Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

call unsafe directly to make the profiler happy (swap for commented-out

code to use method handles)
  • Loading branch information...
commit bc865bc5748a3ea798415be0d3f05efe8462e7c1 1 parent 554c6ec
@the8472 authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/org/jruby/util/unsafe/UnsafeHolder.java
View
12 src/org/jruby/util/unsafe/UnsafeHolder.java
@@ -89,29 +89,35 @@ public static long fieldOffset(Class clazz, String name) {
}
public static void fullFence() {
+ U.fullFence();
+ /*
try {
fullFence.invokeExact(U);
} catch (Throwable e) {
e.printStackTrace();
- }
+ }*/
}
public static void loadFence() {
+ U.loadFence();
+ /*
try {
loadFence.invokeExact(U);
} catch (Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
+ }*/
}
public static void storeFence() {
+ U.storeFence();
+ /*
try {
storeFence.invokeExact(U);
} catch (Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();
- }
+ }*/
}
Please sign in to comment.
Something went wrong with that request. Please try again.