1 /* 2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. 3 * Copyright (c) 2012, 2018 SAP SE. 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_GLOBALS_AIX_HPP 27 #define OS_AIX_GLOBALS_AIX_HPP 28 29 // 30 // Defines Aix specific flags. They are not available on other platforms. 31 // 32 // (Please keep the switches sorted alphabetically.) 33 #define RUNTIME_OS_FLAGS(develop, \ 34 develop_pd, \ 35 product, \ 36 product_pd, \ 37 diagnostic, \ 38 diagnostic_pd, \ 39 notproduct, \ 40 range, \ 41 constraint, \ 42 writeable) \ 43 \ 44 /* Whether to allow the VM to run if EXTSHM=ON. EXTSHM is an environment */ \ 45 /* variable used on AIX to activate certain hacks which allow more shm segments */\ 46 /* for 32bit processes. For 64bit processes, it is pointless and may have */ \ 47 /* harmful side effects (e.g. for some reasonn prevents allocation of 64k pages */\ 48 /* via shmctl). */ \ 49 /* Per default we quit with an error if that variable is found; for certain */ \ 50 /* customer scenarios, we may want to be able to run despite that variable. */ \ 51 product(bool, AllowExtshm, false, \ 52 "Allow VM to run with EXTSHM=ON.") \ 53 \ 54 /* Maximum expected size of the data segment. That correlates with the */ \ 55 /* to the maximum C Heap consumption we expect. */ \ 56 /* We need to know this because we need to leave "breathing space" for the */ \ 57 /* data segment when placing the java heap. If that space is too small, we */ \ 58 /* reduce our chance of getting a low heap address (needed for compressed */ \ 59 /* Oops). */ \ 60 product(uintx, MaxExpectedDataSegmentSize, 8*G, \ 61 "Maximum expected Data Segment Size.") \ 62 \ | 1 /* 2 * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved. 3 * Copyright (c) 2012, 2018 SAP SE. 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_GLOBALS_AIX_HPP 27 #define OS_AIX_GLOBALS_AIX_HPP 28 29 // 30 // Defines Aix specific flags. They are not available on other platforms. 31 // 32 // (Please keep the switches sorted alphabetically.) 33 #define RUNTIME_OS_FLAGS(develop, \ 34 develop_pd, \ 35 product, \ 36 product_pd, \ 37 diagnostic, \ 38 diagnostic_pd, \ 39 notproduct, \ 40 range, \ 41 constraint) \ 42 \ 43 /* Whether to allow the VM to run if EXTSHM=ON. EXTSHM is an environment */ \ 44 /* variable used on AIX to activate certain hacks which allow more shm segments */\ 45 /* for 32bit processes. For 64bit processes, it is pointless and may have */ \ 46 /* harmful side effects (e.g. for some reasonn prevents allocation of 64k pages */\ 47 /* via shmctl). */ \ 48 /* Per default we quit with an error if that variable is found; for certain */ \ 49 /* customer scenarios, we may want to be able to run despite that variable. */ \ 50 product(bool, AllowExtshm, false, \ 51 "Allow VM to run with EXTSHM=ON.") \ 52 \ 53 /* Maximum expected size of the data segment. That correlates with the */ \ 54 /* to the maximum C Heap consumption we expect. */ \ 55 /* We need to know this because we need to leave "breathing space" for the */ \ 56 /* data segment when placing the java heap. If that space is too small, we */ \ 57 /* reduce our chance of getting a low heap address (needed for compressed */ \ 58 /* Oops). */ \ 59 product(uintx, MaxExpectedDataSegmentSize, 8*G, \ 60 "Maximum expected Data Segment Size.") \ 61 \ |