1 /*
   2  * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 
  27 // -- Define all JVM flags that have been declared in share/gc/shenandoah/shenandoah_globals.hpp
  28 
  29 #include "shenandoah_globals.hpp"
  30 #include "runtime/flags/jvmFlag.inline.hpp"
  31 DEFN_PRODUCT_FLAG(ShenandoahRegionSize);
  32 DEFN_PRODUCT_FLAG(ShenandoahTargetNumRegions);
  33 DEFN_PRODUCT_FLAG(ShenandoahMinRegionSize);
  34 DEFN_PRODUCT_FLAG(ShenandoahMaxRegionSize);
  35 DEFN_PRODUCT_FLAG(ShenandoahHumongousThreshold); DEFN_PRODUCT_RANGE(ShenandoahHumongousThreshold);
  36 DEFN_PRODUCT_FLAG(ShenandoahGCMode);
  37 DEFN_PRODUCT_FLAG(ShenandoahGCHeuristics);
  38 DEFN_PRODUCT_FLAG(ShenandoahRefProcFrequency);
  39 DEFN_PRODUCT_FLAG(ShenandoahUnloadClassesFrequency);
  40 DEFN_PRODUCT_FLAG(ShenandoahGarbageThreshold); DEFN_PRODUCT_RANGE(ShenandoahGarbageThreshold);
  41 DEFN_PRODUCT_FLAG(ShenandoahInitFreeThreshold); DEFN_PRODUCT_RANGE(ShenandoahInitFreeThreshold);
  42 DEFN_PRODUCT_FLAG(ShenandoahMinFreeThreshold); DEFN_PRODUCT_RANGE(ShenandoahMinFreeThreshold);
  43 DEFN_PRODUCT_FLAG(ShenandoahAllocationThreshold); DEFN_PRODUCT_RANGE(ShenandoahAllocationThreshold);
  44 DEFN_PRODUCT_FLAG(ShenandoahAllocSpikeFactor); DEFN_PRODUCT_RANGE(ShenandoahAllocSpikeFactor);
  45 DEFN_PRODUCT_FLAG(ShenandoahLearningSteps); DEFN_PRODUCT_RANGE(ShenandoahLearningSteps);
  46 DEFN_PRODUCT_FLAG(ShenandoahImmediateThreshold); DEFN_PRODUCT_RANGE(ShenandoahImmediateThreshold);
  47 DEFN_PRODUCT_FLAG(ShenandoahGuaranteedGCInterval);
  48 DEFN_PRODUCT_FLAG(ShenandoahAlwaysClearSoftRefs);
  49 DEFN_PRODUCT_FLAG(ShenandoahUncommit);
  50 DEFN_PRODUCT_FLAG(ShenandoahUncommitDelay);
  51 DEFN_PRODUCT_FLAG(ShenandoahRegionSampling);
  52 DEFN_PRODUCT_FLAG(ShenandoahRegionSamplingRate);
  53 DEFN_PRODUCT_FLAG(ShenandoahControlIntervalMin);
  54 DEFN_PRODUCT_FLAG(ShenandoahControlIntervalMax);
  55 DEFN_PRODUCT_FLAG(ShenandoahControlIntervalAdjustPeriod);
  56 DEFN_PRODUCT_FLAG(ShenandoahCriticalControlThreadPriority);
  57 DEFN_PRODUCT_FLAG(ShenandoahVerify);
  58 DEFN_PRODUCT_FLAG(ShenandoahVerifyLevel);
  59 DEFN_PRODUCT_FLAG(ShenandoahElasticTLAB);
  60 DEFN_PRODUCT_FLAG(ShenandoahAllowMixedAllocs);
  61 DEFN_PRODUCT_FLAG(ShenandoahEvacReserve); DEFN_PRODUCT_RANGE(ShenandoahEvacReserve);
  62 DEFN_PRODUCT_FLAG(ShenandoahEvacWaste); DEFN_PRODUCT_RANGE(ShenandoahEvacWaste);
  63 DEFN_PRODUCT_FLAG(ShenandoahEvacReserveOverflow);
  64 DEFN_PRODUCT_FLAG(ShenandoahPacing);
  65 DEFN_PRODUCT_FLAG(ShenandoahPacingMaxDelay);
  66 DEFN_PRODUCT_FLAG(ShenandoahPacingIdleSlack); DEFN_PRODUCT_RANGE(ShenandoahPacingIdleSlack);
  67 DEFN_PRODUCT_FLAG(ShenandoahPacingCycleSlack); DEFN_PRODUCT_RANGE(ShenandoahPacingCycleSlack);
  68 DEFN_PRODUCT_FLAG(ShenandoahPacingSurcharge); DEFN_PRODUCT_RANGE(ShenandoahPacingSurcharge);
  69 DEFN_PRODUCT_FLAG(ShenandoahCriticalFreeThreshold); DEFN_PRODUCT_RANGE(ShenandoahCriticalFreeThreshold);
  70 DEFN_PRODUCT_FLAG(ShenandoahDegeneratedGC);
  71 DEFN_PRODUCT_FLAG(ShenandoahFullGCThreshold);
  72 DEFN_PRODUCT_FLAG(ShenandoahImplicitGCInvokesConcurrent);
  73 DEFN_PRODUCT_FLAG(ShenandoahHumongousMoves);
  74 DEFN_PRODUCT_FLAG(ShenandoahOOMDuringEvacALot);
  75 DEFN_PRODUCT_FLAG(ShenandoahAllocFailureALot);
  76 DEFN_PRODUCT_FLAG(ShenandoahAlwaysPreTouch);
  77 DEFN_PRODUCT_FLAG(ShenandoahMarkScanPrefetch); DEFN_PRODUCT_RANGE(ShenandoahMarkScanPrefetch);
  78 DEFN_PRODUCT_FLAG(ShenandoahMarkLoopStride);
  79 DEFN_PRODUCT_FLAG(ShenandoahParallelRegionStride);
  80 DEFN_PRODUCT_FLAG(ShenandoahSATBBufferSize); DEFN_PRODUCT_RANGE(ShenandoahSATBBufferSize);
  81 DEFN_PRODUCT_FLAG(ShenandoahSATBBufferFlushInterval);
  82 DEFN_PRODUCT_FLAG(ShenandoahPreclean);
  83 DEFN_PRODUCT_FLAG(ShenandoahSuspendibleWorkers);
  84 DEFN_PRODUCT_FLAG(ShenandoahSATBBarrier);
  85 DEFN_PRODUCT_FLAG(ShenandoahStoreValEnqueueBarrier);
  86 DEFN_PRODUCT_FLAG(ShenandoahCASBarrier);
  87 DEFN_PRODUCT_FLAG(ShenandoahCloneBarrier);
  88 DEFN_PRODUCT_FLAG(ShenandoahLoadRefBarrier);
  89 DEFN_PRODUCT_FLAG(ShenandoahConcurrentScanCodeRoots);
  90 DEFN_PRODUCT_FLAG(ShenandoahCodeRootsStyle);
  91 DEFN_PRODUCT_FLAG(ShenandoahOptimizeStaticFinals);
  92 DEFN_DEVELOP_FLAG(ShenandoahVerifyOptoBarriers);
  93 DEFN_PRODUCT_FLAG(ShenandoahLoopOptsAfterExpansion);
  94 DEFN_PRODUCT_FLAG(ShenandoahSelfFixing);