private static void saveOptionsPriority()

in analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model/modeInfo/VmOptions.java [40:99]


    private static void saveOptionsPriority() {
        List.of("Xms",
                "Xmx",
                "Xmn",
                "InitialHeapSize",
                "MaxHeapSize",
                "NewSize",
                "NewRatio",
                "MaxNewSize",
                "MetaspaceSize",
                "MaxMetaspaceSize",
                "MaxDirectMemorySize").forEach(s -> optionPriority.put(s, 9));
        List.of("UseCMSInitiatingOccupancyOnly",
                "UseCMSCompactAtFullCollection",
                "MaxGCPauseMillis",
                "InitiatingHeapOccupancyPercent").forEach(s -> optionPriority.put(s, 7));
        List.of("MinHeapFreeRatio",
                "MaxHeapFreeRatio",
                "MaxMetaspaceFreeRatio",
                "MinMetaspaceFreeRatio",
                "UseCompressedOops",
                "UseCompressedClassPointers",
                "SurvivorRatio",
                "ExplicitGCInvokesConcurrent",
                "DisableExplicitGC",
                "ParallelRefProcEnabled",
                "MaxTenuringThreshold",
                "PrintPromotionFailure",
                "TargetSurvivorRatio",
                "ParGCCardsPerStrideChunk",
                "UseGCOverheadLimit",
                "ScavengeBeforeFullGC",
                "PretenureSizeThreshold",
                "InitialTenuringThreshold",
                "GCTimeRatio",
                "ExplicitGCInvokesConcurrentAndUnloadsClasses",
                "SoftRefLRUPolicyMSPerMB",
                "GCLockerRetryAllocationCount",
                "UseCountedLoopSafepoints",
                "ReduceInitialCardMarks",
                "UseAdaptiveSizePolicy",
                "ClassUnloading",
                "ClassUnloadingWithConcurrentMark").forEach(s -> optionPriority.put(s, 6));
        List.of("verbose",
                "PrintHeapAtGC",
                "PrintTenuringDistribution",
                "PrintAdaptiveSizePolicy",
                "UseAsyncGCLog",
                "AsyncGCLogBufferSize",
                "AsyncGCLogBufferFlushThreshold",
                "UseGCLogFileRotation",
                "NumberOfGCLogFiles",
                "GCLogFileSize",
                "PrintStringDeduplicationStatistics",
                "PrintStringTableStatistics",
                "PrintSafepointStatistics",
                "PrintSafepointStatisticsCount",
                "PrintFLSStatistics",
                "PrintJNIGCStalls").forEach(s -> optionPriority.put(s, 5));
    }