< prev index next >

src/hotspot/share/gc/shared/gc_globals.hpp

Print this page
rev 53341 : 8212206: Refactor AdaptiveSizePolicy to separate out code related to GC overhead
Summary: Move check_gc_overhead_limit() and related code to its own class
Reviewed-by:
   1 /*
   2  * Copyright (c) 1997, 2018, 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  *


 599           range(0, max_uintx)                                               \
 600                                                                             \
 601   product(size_t, BaseFootPrintEstimate, 256*M,                             \
 602           "Estimate of footprint other than Java Heap")                     \
 603           range(0, max_uintx)                                               \
 604                                                                             \
 605   product(bool, UseGCOverheadLimit, true,                                   \
 606           "Use policy to limit of proportion of time spent in GC "          \
 607           "before an OutOfMemory error is thrown")                          \
 608                                                                             \
 609   product(uintx, GCTimeLimit, 98,                                           \
 610           "Limit of the proportion of time spent in GC before "             \
 611           "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)")      \
 612           range(0, 100)                                                     \
 613                                                                             \
 614   product(uintx, GCHeapFreeLimit, 2,                                        \
 615           "Minimum percentage of free space after a full GC before an "     \
 616           "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
 617           range(0, 100)                                                     \
 618                                                                             \
 619   develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
 620           "Number of consecutive collections before gc time limit fires")   \
 621           range(1, max_uintx)                                               \
 622                                                                             \
 623   product(intx, PrefetchCopyIntervalInBytes, -1,                            \
 624           "How far ahead to prefetch destination area (<= 0 means off)")    \
 625           range(-1, max_jint)                                               \
 626                                                                             \
 627   product(intx, PrefetchScanIntervalInBytes, -1,                            \
 628           "How far ahead to prefetch scan area (<= 0 means off)")           \
 629           range(-1, max_jint)                                               \
 630                                                                             \
 631   product(intx, PrefetchFieldsAhead, -1,                                    \
 632           "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
 633           range(-1, max_jint)                                               \
 634                                                                             \
 635   diagnostic(bool, VerifyDuringStartup, false,                              \
 636           "Verify memory system before executing any Java code "            \
 637           "during VM initialization")                                       \
 638                                                                             \
 639   diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \


   1 /*
   2  * Copyright (c) 1997, 2019, 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  *


 599           range(0, max_uintx)                                               \
 600                                                                             \
 601   product(size_t, BaseFootPrintEstimate, 256*M,                             \
 602           "Estimate of footprint other than Java Heap")                     \
 603           range(0, max_uintx)                                               \
 604                                                                             \
 605   product(bool, UseGCOverheadLimit, true,                                   \
 606           "Use policy to limit of proportion of time spent in GC "          \
 607           "before an OutOfMemory error is thrown")                          \
 608                                                                             \
 609   product(uintx, GCTimeLimit, 98,                                           \
 610           "Limit of the proportion of time spent in GC before "             \
 611           "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)")      \
 612           range(0, 100)                                                     \
 613                                                                             \
 614   product(uintx, GCHeapFreeLimit, 2,                                        \
 615           "Minimum percentage of free space after a full GC before an "     \
 616           "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
 617           range(0, 100)                                                     \
 618                                                                             \
 619   develop(uintx, GCOverheadLimitThreshold, 5,                               \
 620           "Number of consecutive collections before gc time limit fires")   \
 621           range(1, max_uintx)                                               \
 622                                                                             \
 623   product(intx, PrefetchCopyIntervalInBytes, -1,                            \
 624           "How far ahead to prefetch destination area (<= 0 means off)")    \
 625           range(-1, max_jint)                                               \
 626                                                                             \
 627   product(intx, PrefetchScanIntervalInBytes, -1,                            \
 628           "How far ahead to prefetch scan area (<= 0 means off)")           \
 629           range(-1, max_jint)                                               \
 630                                                                             \
 631   product(intx, PrefetchFieldsAhead, -1,                                    \
 632           "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
 633           range(-1, max_jint)                                               \
 634                                                                             \
 635   diagnostic(bool, VerifyDuringStartup, false,                              \
 636           "Verify memory system before executing any Java code "            \
 637           "during VM initialization")                                       \
 638                                                                             \
 639   diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \


< prev index next >