Skip to content

Instantly share code, notes, and snippets.

@lopex
Created May 14, 2015 16:30
Show Gist options
  • Save lopex/9e845551e16e8f4fe7d4 to your computer and use it in GitHub Desktop.
Save lopex/9e845551e16e8f4fe7d4 to your computer and use it in GitHub Desktop.
import scala.runtime.IntRef;
import scala.runtime.VolatileByteRef;
public final class ax$
{
public static final MODULE$;
public void main(String[] args)
{
IntRef a$lzy = IntRef.zero();VolatileByteRef bitmap$0 = VolatileByteRef.create((byte)0);
}
private final int a$lzycompute$1(IntRef a$lzy$1, VolatileByteRef bitmap$0$1)
{
synchronized (this)
{
if ((byte)(bitmap$0$1.elem & 0x1) == 0)
{
a$lzy$1.elem = 1;bitmap$0$1.elem = ((byte)(bitmap$0$1.elem | 0x1));
}
return a$lzy$1.elem;
}
}
private final int a$1(IntRef a$lzy$1, VolatileByteRef bitmap$0$1)
{
return (byte)(bitmap$0$1.elem & 0x1) == 0 ? a$lzycompute$1(a$lzy$1, bitmap$0$1) : a$lzy$1.elem;
}
private ax$()
{
MODULE$ = this;
}
static
{
new ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment