Class BlackholeSink

java.lang.Object
org.teavm.perf.runtime.BlackholeSink

public final class BlackholeSink extends Object
Accumulates everything consumed by blackholes. Values are stored in static fields which are eventually read by BenchmarkEntryPoint and reported to the host, so the compiler can't prove that computations producing these values are dead.
  • Field Details

    • intSink

      public static int intSink
    • longSink

      public static long longSink
    • doubleSink

      public static double doubleSink
    • objectSink

      public static Object objectSink
    • objectCount

      public static int objectCount