package org.graalvm.compiler.hotspot.replacements;
import org.graalvm.compiler.hotspot.replacements.NewObjectSnippets.ProfileContext;
import org.graalvm.compiler.options.EnumOptionValue;
import org.graalvm.compiler.options.Option;
import org.graalvm.compiler.options.OptionType;
import org.graalvm.compiler.options.OptionValue;
public class HotspotSnippetsOptions {
@Option(help = "If the probability that a type check will hit one the profiled types (up to " +
"TypeCheckMaxHints) is below this value, the type check will be compiled without profiling info", type = OptionType.Expert)
public static final OptionValue<Double> TypeCheckMinProfileHitProbability = new OptionValue<>(0.5);
@Option(help = "The maximum number of profiled types that will be used when compiling a profiled type check. " +
"Note that TypeCheckMinProfileHitProbability also influences whether profiling info is used in compiled type checks.", type = OptionType.Expert)
public static final OptionValue<Integer> TypeCheckMaxHints = new OptionValue<>(2);
@Option(help = "Use a VM runtime call to load and clear the exception object from the thread at the start of a compiled exception handler.", type = OptionType.Debug)
public static final OptionValue<Boolean> LoadExceptionObjectInVM = new OptionValue<>(false);
@Option(help = "Enable profiling of allocation sites.", type = OptionType.Debug)
public static final OptionValue<Boolean> ProfileAllocations = new OptionValue<>(false);
@Option(help = "Control the naming of the counters when using ProfileAllocations.", type = OptionType.Debug)
public static final EnumOptionValue<ProfileContext> ProfileAllocationsContext = new EnumOptionValue<>(ProfileContext.AllocatingMethod);
@Option(help = "Enable profiling of monitor operations.", type = OptionType.Debug)
public static final OptionValue<Boolean> ProfileMonitors = new OptionValue<>(false);
@Option(help = "Trace monitor operations on objects whose type contains this substring.", type = OptionType.Debug)
public static final OptionValue<String> TraceMonitorsTypeFilter = new OptionValue<>(null);
@Option(help = "Trace monitor operations in methods whose fully qualified name contains this substring.", type = OptionType.Debug)
public static final OptionValue<String> TraceMonitorsMethodFilter = new OptionValue<>(null);
@Option(help = "Emit extra code to dynamically check monitor operations are balanced.", type = OptionType.Debug)
public static final OptionValue<Boolean> VerifyBalancedMonitors = new OptionValue<>(false);
}