src/share/vm/runtime/globals.hpp

changeset 5119
12f651e29f6b
parent 5073
d17700c82d7d
child 5125
2958af1d8c5a
     1.1 --- a/src/share/vm/runtime/globals.hpp	Tue May 14 17:08:31 2013 +0200
     1.2 +++ b/src/share/vm/runtime/globals.hpp	Wed May 15 11:05:09 2013 +0200
     1.3 @@ -286,12 +286,12 @@
     1.4  };
     1.5  
     1.6  
     1.7 -class IntFlagSetting {
     1.8 -  intx val;
     1.9 -  intx* flag;
    1.10 +class UIntFlagSetting {
    1.11 +  uintx val;
    1.12 +  uintx* flag;
    1.13   public:
    1.14 -  IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; }
    1.15 -  ~IntFlagSetting()                       { *flag = val; }
    1.16 +  UIntFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; }
    1.17 +  ~UIntFlagSetting()                         { *flag = val; }
    1.18  };
    1.19  
    1.20  
    1.21 @@ -513,12 +513,12 @@
    1.22    product(bool, ForceNUMA, false,                                           \
    1.23            "Force NUMA optimizations on single-node/UMA systems")            \
    1.24                                                                              \
    1.25 -  product(intx, NUMAChunkResizeWeight, 20,                                  \
    1.26 -          "Percentage (0-100) used to weight the current sample when "      \
    1.27 +  product(uintx, NUMAChunkResizeWeight, 20,                                 \
    1.28 +          "Percentage (0-100) used to weigh the current sample when "      \
    1.29            "computing exponentially decaying average for "                   \
    1.30            "AdaptiveNUMAChunkSizing")                                        \
    1.31                                                                              \
    1.32 -  product(intx, NUMASpaceResizeRate, 1*G,                                   \
    1.33 +  product(uintx, NUMASpaceResizeRate, 1*G,                                  \
    1.34            "Do not reallocate more that this amount per collection")         \
    1.35                                                                              \
    1.36    product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
    1.37 @@ -527,7 +527,7 @@
    1.38    product(bool, NUMAStats, false,                                           \
    1.39            "Print NUMA stats in detailed heap information")                  \
    1.40                                                                              \
    1.41 -  product(intx, NUMAPageScanRate, 256,                                      \
    1.42 +  product(uintx, NUMAPageScanRate, 256,                                     \
    1.43            "Maximum number of pages to include in the page scan procedure")  \
    1.44                                                                              \
    1.45    product_pd(bool, NeedsDeoptSuspend,                                       \
    1.46 @@ -715,7 +715,7 @@
    1.47    diagnostic(bool, LogEvents, true,                                         \
    1.48               "Enable the various ring buffer event logs")                   \
    1.49                                                                              \
    1.50 -  diagnostic(intx, LogEventsBufferEntries, 10,                              \
    1.51 +  diagnostic(uintx, LogEventsBufferEntries, 10,                             \
    1.52               "Enable the various ring buffer event logs")                   \
    1.53                                                                              \
    1.54    product(bool, BytecodeVerificationRemote, true,                           \
    1.55 @@ -1432,16 +1432,17 @@
    1.56    product(bool, ParallelGCVerbose, false,                                   \
    1.57            "Verbose output for parallel GC.")                                \
    1.58                                                                              \
    1.59 -  product(intx, ParallelGCBufferWastePct, 10,                               \
    1.60 -          "wasted fraction of parallel allocation buffer.")                 \
    1.61 +  product(uintx, ParallelGCBufferWastePct, 10,                              \
    1.62 +          "Wasted fraction of parallel allocation buffer.")                 \
    1.63                                                                              \
    1.64    diagnostic(bool, ParallelGCRetainPLAB, false,                             \
    1.65               "Retain parallel allocation buffers across scavenges; "        \
    1.66               " -- disabled because this currently conflicts with "          \
    1.67               " parallel card scanning under certain conditions ")           \
    1.68                                                                              \
    1.69 -  product(intx, TargetPLABWastePct, 10,                                     \
    1.70 -          "target wasted space in last buffer as pct of overall allocation")\
    1.71 +  product(uintx, TargetPLABWastePct, 10,                                    \
    1.72 +          "Target wasted space in last buffer as percent of overall "       \
    1.73 +          "allocation")                                                     \
    1.74                                                                              \
    1.75    product(uintx, PLABWeight, 75,                                            \
    1.76            "Percentage (0-100) used to weight the current sample when"       \
    1.77 @@ -1519,7 +1520,7 @@
    1.78    product(bool, AlwaysPreTouch, false,                                      \
    1.79            "It forces all freshly committed pages to be pre-touched.")       \
    1.80                                                                              \
    1.81 -  product_pd(intx, CMSYoungGenPerWorker,                                    \
    1.82 +  product_pd(uintx, CMSYoungGenPerWorker,                                   \
    1.83            "The maximum size of young gen chosen by default per GC worker "  \
    1.84            "thread available")                                               \
    1.85                                                                              \
    1.86 @@ -1837,7 +1838,7 @@
    1.87    product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
    1.88            "Only use occupancy as a crierion for starting a CMS collection") \
    1.89                                                                              \
    1.90 -  product(intx, CMSIsTooFullPercentage, 98,                                 \
    1.91 +  product(uintx, CMSIsTooFullPercentage, 98,                                \
    1.92            "An absolute ceiling above which CMS will always consider the "   \
    1.93            "unloading of classes when class unloading is enabled")           \
    1.94                                                                              \
    1.95 @@ -1876,7 +1877,7 @@
    1.96    develop(uintx, PromotionFailureALotInterval, 5,                           \
    1.97            "Total collections between promotion failures alot")              \
    1.98                                                                              \
    1.99 -  experimental(intx, WorkStealingSleepMillis, 1,                            \
   1.100 +  experimental(uintx, WorkStealingSleepMillis, 1,                           \
   1.101            "Sleep time when sleep is used for yields")                       \
   1.102                                                                              \
   1.103    experimental(uintx, WorkStealingYieldsBeforeSleep, 5000,                  \
   1.104 @@ -2020,7 +2021,7 @@
   1.105            "Number of collections before the adaptive sizing is started")    \
   1.106                                                                              \
   1.107    product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
   1.108 -          "Collecton interval for printing information; zero => never")     \
   1.109 +          "Collection interval for printing information; zero means never") \
   1.110                                                                              \
   1.111    product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
   1.112            "Use adaptive minimum footprint as a goal")                       \
   1.113 @@ -3049,7 +3050,7 @@
   1.114    product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M),              \
   1.115            "Max expansion of Metaspace without full GC (in bytes)")          \
   1.116                                                                              \
   1.117 -  product(intx, QueuedAllocationWarningCount, 0,                            \
   1.118 +  product(uintx, QueuedAllocationWarningCount, 0,                           \
   1.119            "Number of times an allocation that queues behind a GC "          \
   1.120            "will retry before printing a warning")                           \
   1.121                                                                              \
   1.122 @@ -3077,7 +3078,7 @@
   1.123            "either completely full or completely empty.  Par compact also"   \
   1.124            "has a smaller default value; see arguments.cpp.")                \
   1.125                                                                              \
   1.126 -  product(intx, MarkSweepAlwaysCompactCount,     4,                         \
   1.127 +  product(uintx, MarkSweepAlwaysCompactCount,     4,                        \
   1.128            "How often should we fully compact the heap (ignoring the dead "  \
   1.129            "space parameters)")                                              \
   1.130                                                                              \

mercurial