Skip to content

Commit

Permalink
Restore deprecated field for concurrent-ruby. Fixes #4407.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 23, 2016
1 parent 19494f4 commit 993395f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/org/jruby/util/unsafe/UnsafeHolder.java
Expand Up @@ -26,6 +26,8 @@
***** END LICENSE BLOCK *****/
package org.jruby.util.unsafe;

import com.headius.unsafe.fences.UnsafeFences;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

Expand Down Expand Up @@ -88,4 +90,7 @@ public static long fieldOffset(Class clazz, String name) {
return sun.misc.Unsafe.INVALID_FIELD_OFFSET;
}
}

@Deprecated
public static final boolean SUPPORTS_FENCES = UnsafeFences.SUPPORTS_FENCES;
}

0 comments on commit 993395f

Please sign in to comment.