Path: blob/master/src/hotspot/os/linux/globals_linux.hpp
40951 views
/*1* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef OS_LINUX_GLOBALS_LINUX_HPP25#define OS_LINUX_GLOBALS_LINUX_HPP2627//28// Declare Linux specific flags. They are not available on other platforms.29//30#define RUNTIME_OS_FLAGS(develop, \31develop_pd, \32product, \33product_pd, \34notproduct, \35range, \36constraint) \37\38product(bool, UseOprofile, false, \39"enable support for Oprofile profiler") \40\41/* NB: The default value of UseLinuxPosixThreadCPUClocks may be */ \42/* overridden in Arguments::parse_each_vm_init_arg. */ \43product(bool, UseLinuxPosixThreadCPUClocks, true, \44"enable fast Linux Posix clocks where available") \45\46product(bool, UseHugeTLBFS, false, \47"Use MAP_HUGETLB for large pages") \48\49product(bool, UseTransparentHugePages, false, \50"Use MADV_HUGEPAGE for large pages") \51\52product(bool, LoadExecStackDllInVMThread, true, \53"Load DLLs with executable-stack attribute in the VM Thread") \54\55product(bool, UseSHM, false, \56"Use SYSV shared memory for large pages") \57\58product(bool, UseContainerSupport, true, \59"Enable detection and runtime container configuration support") \60\61product(bool, PreferContainerQuotaForCPUCount, true, \62"Calculate the container CPU availability based on the value" \63" of quotas (if set), when true. Otherwise, use the CPU" \64" shares value, provided it is less than quota.") \65\66product(bool, AdjustStackSizeForTLS, false, \67"Increase the thread stack size to include space for glibc " \68"static thread-local storage (TLS) if true") \69\70product(bool, DumpPrivateMappingsInCore, true, DIAGNOSTIC, \71"If true, sets bit 2 of /proc/PID/coredump_filter, thus " \72"resulting in file-backed private mappings of the process to "\73"be dumped into the corefile.") \74\75product(bool, DumpSharedMappingsInCore, true, DIAGNOSTIC, \76"If true, sets bit 3 of /proc/PID/coredump_filter, thus " \77"resulting in file-backed shared mappings of the process to " \78"be dumped into the corefile.") \79\80product(bool, UseCpuAllocPath, false, DIAGNOSTIC, \81"Use CPU_ALLOC code path in os::active_processor_count ") \82\83product(bool, DumpPerfMapAtExit, false, DIAGNOSTIC, \84"Write map file for Linux perf tool at exit")8586// end of RUNTIME_OS_FLAGS8788//89// Defines Linux-specific default values. The flags are available on all90// platforms, but they may have different default values on other platforms.91//92define_pd_global(size_t, PreTouchParallelChunkSize, 4 * M);93define_pd_global(bool, UseLargePages, false);94define_pd_global(bool, UseLargePagesIndividualAllocation, false);95define_pd_global(bool, UseThreadPriorities, true) ;9697#endif // OS_LINUX_GLOBALS_LINUX_HPP9899100