
io.perfmark.java6.SecretVolatileGenerator Maven / Gradle / Ivy
package io.perfmark.java6;
import io.perfmark.impl.Generator;
final class SecretVolatileGenerator {
// @UsedReflectively
public static final class VolatileGenerator extends Generator {
// @UsedReflectively
public VolatileGenerator() {}
private volatile long gen;
@Override
public void setGeneration(long generation) {
gen = generation;
}
@Override
public long getGeneration() {
return gen;
}
@Override
public long costOfGetNanos() {
return 3;
}
@Override
public long costOfSetNanos() {
return 10;
}
}
private SecretVolatileGenerator() {
throw new AssertionError("nope");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy