author | attila |
Mon, 08 Feb 2016 12:59:08 +0100 | |
changeset 35725 | c7a2c18529b1 |
parent 34647 | fafb32d71489 |
child 35594 | cc13089c6327 |
permissions | -rw-r--r-- |
22831
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
1 |
/* |
30198 | 2 |
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
3 |
* Copyright 2012, 2015 SAP AG. All rights reserved. |
|
22831
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
5 |
* |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
6 |
* This code is free software; you can redistribute it and/or modify it |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation. |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
9 |
* |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
14 |
* accompanied this code). |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
15 |
* |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
16 |
* You should have received a copy of the GNU General Public License version |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation, |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
19 |
* |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
21 |
* or visit www.oracle.com if you need additional information or have any |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
22 |
* questions. |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
23 |
* |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
24 |
*/ |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
25 |
|
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
26 |
#ifndef OS_AIX_VM_GLOBALS_AIX_HPP |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
27 |
#define OS_AIX_VM_GLOBALS_AIX_HPP |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
28 |
|
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
29 |
// |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
30 |
// Defines Aix specific flags. They are not available on other platforms. |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
31 |
// |
34647 | 32 |
// (Please keep the switches sorted alphabetically.) |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
30198
diff
changeset
|
33 |
#define RUNTIME_OS_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct, range, constraint) \ |
22831
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
34 |
\ |
34647 | 35 |
/* Whether to allow the VM to run if EXTSHM=ON. EXTSHM is an environment */ \ |
36 |
/* variable used on AIX to activate certain hacks which allow more shm segments */\ |
|
37 |
/* for 32bit processes. For 64bit processes, it is pointless and may have */ \ |
|
38 |
/* harmful side effects (e.g. for some reasonn prevents allocation of 64k pages */\ |
|
39 |
/* via shmctl). */ \ |
|
40 |
/* Per default we quit with an error if that variable is found; for certain */ \ |
|
41 |
/* customer scenarios, we may want to be able to run despite that variable. */ \ |
|
42 |
product(bool, AllowExtshm, false, \ |
|
43 |
"Allow VM to run with EXTSHM=ON.") \ |
|
44 |
\ |
|
45 |
product(intx, AttachListenerTimeout, 1000, \ |
|
46 |
"Timeout in ms the attach listener waits for a request") \ |
|
47 |
range(0, 2147483) \ |
|
48 |
\ |
|
49 |
/* Maximum expected size of the data segment. That correlates with the */ \ |
|
50 |
/* to the maximum C Heap consumption we expect. */ \ |
|
51 |
/* We need to know this because we need to leave "breathing space" for the */ \ |
|
52 |
/* data segment when placing the java heap. If that space is too small, we */ \ |
|
53 |
/* reduce our chance of getting a low heap address (needed for compressed */ \ |
|
54 |
/* Oops). */ \ |
|
55 |
product(uintx, MaxExpectedDataSegmentSize, (SIZE_4G * 2), \ |
|
56 |
"Maximum expected Data Segment Size.") \ |
|
57 |
\ |
|
58 |
/* Use optimized addresses for the polling page. */ \ |
|
59 |
product(bool, OptimizePollingPageLocation, true, \ |
|
60 |
"Optimize the location of the polling page used for Safepoints") \ |
|
61 |
\ |
|
30198 | 62 |
/* Use 64K pages for virtual memory (shmat). */ \ |
63 |
product(bool, Use64KPages, true, \ |
|
64 |
"Use 64K pages if available.") \ |
|
65 |
\ |
|
34647 | 66 |
/* If VM uses 64K paged memory (shmat) for virtual memory: threshold below */ \ |
67 |
/* which virtual memory allocations are done with 4K memory (mmap). This is */ \ |
|
68 |
/* mainly for test purposes. */ \ |
|
69 |
develop(uintx, Use64KPagesThreshold, 0, \ |
|
70 |
"4K/64K page allocation threshold.") \ |
|
22831
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
71 |
\ |
34647 | 72 |
/* Normally AIX commits memory on touch, but sometimes it is helpful to have */ \ |
73 |
/* explicit commit behaviour. This flag, if true, causes the VM to touch */ \ |
|
74 |
/* memory on os::commit_memory() (which normally is a noop). */ \ |
|
75 |
product(bool, UseExplicitCommit, false, \ |
|
76 |
"Explicit commit for virtual memory.") \ |
|
22831
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
77 |
\ |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
78 |
|
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
79 |
|
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
80 |
// |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
81 |
// Defines Aix-specific default values. The flags are available on all |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
82 |
// platforms, but they may have different default values on other platforms. |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
83 |
// |
34647 | 84 |
|
85 |
// UseLargePages means nothing, for now, on AIX. |
|
86 |
// Use Use64KPages or Use16MPages instead. |
|
30198 | 87 |
define_pd_global(bool, UseLargePages, false); |
22831
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
88 |
define_pd_global(bool, UseLargePagesIndividualAllocation, false); |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
89 |
define_pd_global(bool, UseOSErrorReporting, false); |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
90 |
define_pd_global(bool, UseThreadPriorities, true) ; |
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
91 |
|
1e2ba1d62103
8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff
changeset
|
92 |
#endif // OS_AIX_VM_GLOBALS_AIX_HPP |