0N/A/*
4340N/A * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef OS_LINUX_VM_GLOBALS_LINUX_HPP
1879N/A#define OS_LINUX_VM_GLOBALS_LINUX_HPP
1879N/A
0N/A//
0N/A// Defines Linux specific flags. They are not available on other platforms.
0N/A//
0N/A#define RUNTIME_OS_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \
2383N/A product(bool, UseOprofile, false, \
2383N/A "enable support for Oprofile profiler") \
2383N/A \
2383N/A product(bool, UseLinuxPosixThreadCPUClocks, true, \
2383N/A "enable fast Linux Posix clocks where available") \
2383N/A/* NB: The default value of UseLinuxPosixThreadCPUClocks may be \
2383N/A overridden in Arguments::parse_each_vm_init_arg. */ \
2383N/A \
2383N/A product(bool, UseHugeTLBFS, false, \
2383N/A "Use MAP_HUGETLB for large pages") \
2383N/A \
4340N/A product(bool, LoadExecStackDllInVMThread, true, \
4340N/A "Load DLLs with executable-stack attribute in the VM Thread") \
4340N/A \
2383N/A product(bool, UseSHM, false, \
2383N/A "Use SYSV shared memory for large pages")
0N/A
0N/A//
0N/A// Defines Linux-specific default values. The flags are available on all
0N/A// platforms, but they may have different default values on other platforms.
0N/A//
2415N/Adefine_pd_global(bool, UseLargePages, true);
389N/Adefine_pd_global(bool, UseLargePagesIndividualAllocation, false);
0N/Adefine_pd_global(bool, UseOSErrorReporting, false);
0N/Adefine_pd_global(bool, UseThreadPriorities, true) ;
1879N/A
1879N/A#endif // OS_LINUX_VM_GLOBALS_LINUX_HPP