< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahHeuristics.hpp

Print this page


  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 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHHEURISTICS_HPP
  26 #define SHARE_GC_SHENANDOAH_SHENANDOAHHEURISTICS_HPP
  27 
  28 #include "gc/shenandoah/shenandoahHeap.hpp"
  29 #include "gc/shenandoah/shenandoahPhaseTimings.hpp"
  30 #include "gc/shenandoah/shenandoahSharedVariables.hpp"
  31 #include "memory/allocation.hpp"
  32 #include "runtime/globals_extension.hpp"
  33 
  34 #define SHENANDOAH_ERGO_DISABLE_FLAG(name)                                  \
  35   do {                                                                      \
  36     if (FLAG_IS_DEFAULT(name) && (name)) {                                  \
  37       log_info(gc)("Heuristics ergonomically sets -XX:-" #name);            \
  38       FLAG_SET_DEFAULT(name, false);                                        \
  39     }                                                                       \
  40   } while (0)
  41 
  42 #define SHENANDOAH_ERGO_ENABLE_FLAG(name)                                   \
  43   do {                                                                      \
  44     if (FLAG_IS_DEFAULT(name) && !(name)) {                                 \
  45       log_info(gc)("Heuristics ergonomically sets -XX:+" #name);            \
  46       FLAG_SET_DEFAULT(name, true);                                         \
  47     }                                                                       \
  48   } while (0)
  49 
  50 #define SHENANDOAH_ERGO_OVERRIDE_DEFAULT(name, value)                       \
  51   do {                                                                      \
  52     if (FLAG_IS_DEFAULT(name)) {                                            \




  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 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHHEURISTICS_HPP
  26 #define SHARE_GC_SHENANDOAH_SHENANDOAHHEURISTICS_HPP
  27 
  28 #include "gc/shenandoah/shenandoahHeap.hpp"
  29 #include "gc/shenandoah/shenandoahPhaseTimings.hpp"
  30 #include "gc/shenandoah/shenandoahSharedVariables.hpp"
  31 #include "memory/allocation.hpp"
  32 #include "runtime/globals.hpp"
  33 
  34 #define SHENANDOAH_ERGO_DISABLE_FLAG(name)                                  \
  35   do {                                                                      \
  36     if (FLAG_IS_DEFAULT(name) && (name)) {                                  \
  37       log_info(gc)("Heuristics ergonomically sets -XX:-" #name);            \
  38       FLAG_SET_DEFAULT(name, false);                                        \
  39     }                                                                       \
  40   } while (0)
  41 
  42 #define SHENANDOAH_ERGO_ENABLE_FLAG(name)                                   \
  43   do {                                                                      \
  44     if (FLAG_IS_DEFAULT(name) && !(name)) {                                 \
  45       log_info(gc)("Heuristics ergonomically sets -XX:+" #name);            \
  46       FLAG_SET_DEFAULT(name, true);                                         \
  47     }                                                                       \
  48   } while (0)
  49 
  50 #define SHENANDOAH_ERGO_OVERRIDE_DEFAULT(name, value)                       \
  51   do {                                                                      \
  52     if (FLAG_IS_DEFAULT(name)) {                                            \


< prev index next >