This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.foreign.*; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.VarHandle; | |
import java.lang.reflect.Field; | |
public class ImplLookupGetter { | |
public static final MethodHandles.Lookup IMPL_LOOKUP; | |
public static final int JNI_VERSION_21 = 0x00150000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@State(Scope.Thread) | |
@Warmup(iterations = 3) | |
@Measurement(iterations = 3) | |
@Fork(1) | |
@BenchmarkMode(Mode.AverageTime) | |
@OutputTimeUnit(TimeUnit.NANOSECONDS) | |
public class InlineBenchmark { | |
private Test test; | |
private static final MethodHandle HANDLE; | |
private static final Method METHOD; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static byte[] readFileUsingFileChannelAndMappedByteBuffer(Path file) { | |
try(FileChannel ch = FileChannel.open(file, StandardOpenOption.READ)) { | |
MappedByteBuffer mbb = ch.map(FileChannel.MapMode.READ_ONLY, 0, ch.size()); | |
byte[] bytes = new byte[mbb.remaining()]; | |
mbb.get(bytes); | |
return bytes; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"homepage": "https://github.com/XiaoPangxie732/Flycycle", | |
"1.16.5": { | |
"0.1.0": "Base things" | |
}, | |
"promos": { | |
"1.16.5-latest": "0.1.0", | |
"1.16.5-recommended": "0.1.0" | |
} | |
} |