1 /* 2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. 3 * Copyright 2012, 2013 SAP AG. All rights reserved. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * 6 * This code is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 only, as 8 * published by the Free Software Foundation. 9 * 10 * This code is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 * 24 */ 25 26 #ifndef OS_AIX_VM_GLOBALS_AIX_HPP 27 #define OS_AIX_VM_GLOBALS_AIX_HPP 28 29 // 30 // Defines Aix specific flags. They are not available on other platforms. 31 // 32 #define RUNTIME_OS_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \ 33 \ 34 /* If UseLargePages == true allow or deny usage of 16M pages. 16M pages are */ \ 35 /* a scarce resource and there may be situations where we do not want the VM */ \ 36 /* to run with 16M pages. (Will fall back to 64K pages). */ \ 37 product_pd(bool, Use16MPages, \ 38 "Use 16M pages if available.") \ 39 \ 40 /* use optimized addresses for the polling page, */ \ 41 /* e.g. map it to a special 32-bit address. */ \ 42 product_pd(bool, OptimizePollingPageLocation, \ 43 "Optimize the location of the polling page used for Safepoints") \ 44 \ 45 product_pd(intx, AttachListenerTimeout, \ 46 "Timeout in ms the attach listener waits for a request") \ 47 \ 48 49 // Per default, do not allow 16M pages. 16M pages have to be switched on specifically. 50 define_pd_global(bool, Use16MPages, false); 51 define_pd_global(bool, OptimizePollingPageLocation, true); 52 define_pd_global(intx, AttachListenerTimeout, 1000); 53 54 // 55 // Defines Aix-specific default values. The flags are available on all 56 // platforms, but they may have different default values on other platforms. 57 // 58 define_pd_global(bool, UseLargePages, true); 59 define_pd_global(bool, UseLargePagesIndividualAllocation, false); 60 define_pd_global(bool, UseOSErrorReporting, false); 61 define_pd_global(bool, UseThreadPriorities, true) ; 62 63 #endif // OS_AIX_VM_GLOBALS_AIX_HPP