Skip to content

Commit fcffb27

Browse files
committed
Use Unsafe#fullFence and #loadFence directly since the shortcuts were removed in JRuby
1 parent ae1e138 commit fcffb27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/com/concurrent_ruby/ext/SynchronizationLibrary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static IRubyObject fullMemoryBarrier(ThreadContext context, IRubyObject s
102102
final ThreadContext oldContext = threadContext;
103103
threadContext = context;
104104
} else {
105-
UnsafeHolder.fullFence();
105+
UnsafeHolder.U.fullFence();
106106
}
107107
return context.nil;
108108
}
@@ -115,7 +115,7 @@ public static IRubyObject instanceVariableGetVolatile(ThreadContext context, IRu
115115
final ThreadContext oldContext = threadContext;
116116
return ((RubyBasicObject)self).instance_variable_get(context, name);
117117
} else {
118-
UnsafeHolder.loadFence();
118+
UnsafeHolder.U.loadFence();
119119
return ((RubyBasicObject)self).instance_variable_get(context, name);
120120
}
121121
}

0 commit comments

Comments
 (0)