Path: blob/master/src/hotspot/os/aix/globals_aix.hpp
40930 views
/*1* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2012, 2018 SAP SE. 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 it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 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 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef OS_AIX_GLOBALS_AIX_HPP26#define OS_AIX_GLOBALS_AIX_HPP2728//29// Declare Aix specific flags. They are not available on other platforms.30//31// (Please keep the switches sorted alphabetically.)32#define RUNTIME_OS_FLAGS(develop, \33develop_pd, \34product, \35product_pd, \36notproduct, \37range, \38constraint) \39\40/* Whether to allow the VM to run if EXTSHM=ON. EXTSHM is an environment */ \41/* variable used on AIX to activate certain hacks which allow more shm segments */\42/* for 32bit processes. For 64bit processes, it is pointless and may have */ \43/* harmful side effects (e.g. for some reasonn prevents allocation of 64k pages */\44/* via shmctl). */ \45/* Per default we quit with an error if that variable is found; for certain */ \46/* customer scenarios, we may want to be able to run despite that variable. */ \47product(bool, AllowExtshm, false, \48"Allow VM to run with EXTSHM=ON.") \49\50/* Maximum expected size of the data segment. That correlates with the */ \51/* to the maximum C Heap consumption we expect. */ \52/* We need to know this because we need to leave "breathing space" for the */ \53/* data segment when placing the java heap. If that space is too small, we */ \54/* reduce our chance of getting a low heap address (needed for compressed */ \55/* Oops). */ \56product(uintx, MaxExpectedDataSegmentSize, 8*G, \57"Maximum expected Data Segment Size.") \58\59/* Use optimized addresses for the polling page. */ \60product(bool, OptimizePollingPageLocation, true, \61"Optimize the location of the polling page used for Safepoints") \62\63/* Use 64K pages for virtual memory (shmat). */ \64product(bool, Use64KPages, true, \65"Use 64K pages if available.") \66\67/* If VM uses 64K paged memory (shmat) for virtual memory: threshold below */ \68/* which virtual memory allocations are done with 4K memory (mmap). This is */ \69/* mainly for test purposes. */ \70develop(uintx, Use64KPagesThreshold, 0, \71"4K/64K page allocation threshold.") \72\73/* Normally AIX commits memory on touch, but sometimes it is helpful to have */ \74/* explicit commit behaviour. This flag, if true, causes the VM to touch */ \75/* memory on os::commit_memory() (which normally is a noop). */ \76product(bool, UseExplicitCommit, false, \77"Explicit commit for virtual memory.")7879// end of RUNTIME_OS_FLAGS8081//82// Defines Aix-specific default values. The flags are available on all83// platforms, but they may have different default values on other platforms.84//8586// UseLargePages means nothing, for now, on AIX.87// Use Use64KPages or Use16MPages instead.88define_pd_global(size_t, PreTouchParallelChunkSize, 1 * G);89define_pd_global(bool, UseLargePages, false);90define_pd_global(bool, UseLargePagesIndividualAllocation, false);91define_pd_global(bool, UseThreadPriorities, true) ;9293#endif // OS_AIX_GLOBALS_AIX_HPP949596