Permalink
Browse files

due to the switch from atomic field updater (which had implicit fences)

to normal volatile access we need to upgrade to fullfence.
  • Loading branch information...
1 parent 48c3527 commit 1679870e21cf574f214d4b8b354836d8e7f0b88d @the8472 committed Jan 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/RubyBasicObject.java
@@ -1256,7 +1256,7 @@ private void setVariableStamped(int index, Object value) {
if(UnsafeHolder.SUPPORTS_FENCES) {
currentTable[index] = value;
- UnsafeHolder.storeFence();
+ UnsafeHolder.fullFence();
} else {
// TODO: maybe optimize by read and checking current value before setting
UnsafeHolder.U.putObjectVolatile(currentTable, UnsafeHolder.ARRAY_OBJECT_BASE_OFFSET + UnsafeHolder.ARRAY_OBJECT_INDEX_SCALE * index, value);

0 comments on commit 1679870

Please sign in to comment.