20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2015. These |
|
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
|
29 */ |
|
30 |
25 #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP |
31 #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP |
26 #define SHARE_VM_RUNTIME_GLOBALS_HPP |
32 #define SHARE_VM_RUNTIME_GLOBALS_HPP |
27 |
33 |
28 #include "utilities/debug.hpp" |
34 #include "utilities/debug.hpp" |
29 |
35 |
50 # include "globals_arm.hpp" |
56 # include "globals_arm.hpp" |
51 #endif |
57 #endif |
52 #ifdef TARGET_ARCH_ppc |
58 #ifdef TARGET_ARCH_ppc |
53 # include "globals_ppc.hpp" |
59 # include "globals_ppc.hpp" |
54 #endif |
60 #endif |
|
61 #ifdef TARGET_ARCH_mips |
|
62 # include "globals_mips.hpp" |
|
63 #endif |
55 #ifdef TARGET_OS_FAMILY_linux |
64 #ifdef TARGET_OS_FAMILY_linux |
56 # include "globals_linux.hpp" |
65 # include "globals_linux.hpp" |
57 #endif |
66 #endif |
58 #ifdef TARGET_OS_FAMILY_solaris |
67 #ifdef TARGET_OS_FAMILY_solaris |
59 # include "globals_solaris.hpp" |
68 # include "globals_solaris.hpp" |
70 #ifdef TARGET_OS_ARCH_linux_x86 |
79 #ifdef TARGET_OS_ARCH_linux_x86 |
71 # include "globals_linux_x86.hpp" |
80 # include "globals_linux_x86.hpp" |
72 #endif |
81 #endif |
73 #ifdef TARGET_OS_ARCH_linux_sparc |
82 #ifdef TARGET_OS_ARCH_linux_sparc |
74 # include "globals_linux_sparc.hpp" |
83 # include "globals_linux_sparc.hpp" |
|
84 #endif |
|
85 #ifdef TARGET_OS_ARCH_linux_mips |
|
86 # include "globals_linux_mips.hpp" |
75 #endif |
87 #endif |
76 #ifdef TARGET_OS_ARCH_linux_zero |
88 #ifdef TARGET_OS_ARCH_linux_zero |
77 # include "globals_linux_zero.hpp" |
89 # include "globals_linux_zero.hpp" |
78 #endif |
90 #endif |
79 #ifdef TARGET_OS_ARCH_solaris_x86 |
91 #ifdef TARGET_OS_ARCH_solaris_x86 |
105 # include "c1_globals_x86.hpp" |
117 # include "c1_globals_x86.hpp" |
106 #endif |
118 #endif |
107 #ifdef TARGET_ARCH_sparc |
119 #ifdef TARGET_ARCH_sparc |
108 # include "c1_globals_sparc.hpp" |
120 # include "c1_globals_sparc.hpp" |
109 #endif |
121 #endif |
|
122 #ifdef TARGET_ARCH_mips |
|
123 # include "c1_globals_mips.hpp" |
|
124 #endif |
110 #ifdef TARGET_ARCH_arm |
125 #ifdef TARGET_ARCH_arm |
111 # include "c1_globals_arm.hpp" |
126 # include "c1_globals_arm.hpp" |
112 #endif |
127 #endif |
113 #ifdef TARGET_ARCH_ppc |
128 #ifdef TARGET_ARCH_ppc |
114 # include "c1_globals_ppc.hpp" |
129 # include "c1_globals_ppc.hpp" |
133 #ifdef TARGET_ARCH_x86 |
148 #ifdef TARGET_ARCH_x86 |
134 # include "c2_globals_x86.hpp" |
149 # include "c2_globals_x86.hpp" |
135 #endif |
150 #endif |
136 #ifdef TARGET_ARCH_sparc |
151 #ifdef TARGET_ARCH_sparc |
137 # include "c2_globals_sparc.hpp" |
152 # include "c2_globals_sparc.hpp" |
|
153 #endif |
|
154 #ifdef TARGET_ARCH_mips |
|
155 # include "c2_globals_mips.hpp" |
138 #endif |
156 #endif |
139 #ifdef TARGET_ARCH_arm |
157 #ifdef TARGET_ARCH_arm |
140 # include "c2_globals_arm.hpp" |
158 # include "c2_globals_arm.hpp" |
141 #endif |
159 #endif |
142 #ifdef TARGET_ARCH_ppc |
160 #ifdef TARGET_ARCH_ppc |
555 "Only used if UseLargePages is enabled.") \ |
573 "Only used if UseLargePages is enabled.") \ |
556 \ |
574 \ |
557 develop(bool, TracePageSizes, false, \ |
575 develop(bool, TracePageSizes, false, \ |
558 "Trace page size selection and usage") \ |
576 "Trace page size selection and usage") \ |
559 \ |
577 \ |
560 product(bool, UseNUMA, false, \ |
578 /* 2013/12/18 Jin: disable UseNUMA until OS is fixed*/ \ |
|
579 product(bool, UseNUMA, MIPS64_ONLY(false) NOT_MIPS64(false), \ |
561 "Use NUMA if available") \ |
580 "Use NUMA if available") \ |
|
581 \ |
|
582 product(bool, UseOldNUMA, MIPS64_ONLY(true) NOT_MIPS64(false), \ |
|
583 "Use Old NUMA if available") \ |
|
584 \ |
|
585 product(bool, UseNUMAThreadRoots, MIPS64_ONLY(true) NOT_MIPS64(false), \ |
|
586 "Use NUMAThreadRoots if available") \ |
|
587 \ |
|
588 product(bool, UseNUMASteal, MIPS64_ONLY(true) NOT_MIPS64(false), \ |
|
589 "Use NUMASteal if available") \ |
|
590 \ |
|
591 product(bool, UseNUMAGC, MIPS64_ONLY(true) NOT_MIPS64(false), \ |
|
592 "Use NUMAGC if available") \ |
|
593 \ |
|
594 product(bool, UseStasticScavenge, false, \ |
|
595 "Use StasticScavenge if available") \ |
|
596 \ |
|
597 product(bool, UseStasticCopy, false, \ |
|
598 "Use StasticCopy if available") \ |
562 \ |
599 \ |
563 product(bool, UseNUMAInterleaving, false, \ |
600 product(bool, UseNUMAInterleaving, false, \ |
564 "Interleave memory across NUMA nodes if available") \ |
601 "Interleave memory across NUMA nodes if available") \ |
565 \ |
602 \ |
566 product(uintx, NUMAInterleaveGranularity, 2*M, \ |
603 product(uintx, NUMAInterleaveGranularity, 2*M, \ |
2255 "Bind CMS Thread to CPU if possible") \ |
2292 "Bind CMS Thread to CPU if possible") \ |
2256 \ |
2293 \ |
2257 diagnostic(uintx, CPUForCMSThread, 0, \ |
2294 diagnostic(uintx, CPUForCMSThread, 0, \ |
2258 "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ |
2295 "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ |
2259 \ |
2296 \ |
2260 product(bool, BindGCTaskThreadsToCPUs, false, \ |
2297 product(bool, BindGCTaskThreadsToCPUs, MIPS64_ONLY(true) NOT_MIPS64(false), \ |
2261 "Bind GCTaskThreads to CPUs if possible") \ |
2298 "Bind GCTaskThreads to CPUs if possible") \ |
2262 \ |
2299 \ |
2263 product(bool, UseGCTaskAffinity, false, \ |
2300 product(bool, UseGCTaskAffinity, false, \ |
2264 "Use worker affinity when asking for GCTasks") \ |
2301 "Use worker affinity when asking for GCTasks") \ |
2265 \ |
2302 \ |
3101 \ |
3138 \ |
3102 product_pd(intx, PreInflateSpin, \ |
3139 product_pd(intx, PreInflateSpin, \ |
3103 "Number of times to spin wait before inflation") \ |
3140 "Number of times to spin wait before inflation") \ |
3104 \ |
3141 \ |
3105 /* gc parameters */ \ |
3142 /* gc parameters */ \ |
3106 product(uintx, InitialHeapSize, 0, \ |
3143 product(uintx, InitialHeapSize, ScaleForWordSize(MIPS64_ONLY(2500) NOT_MIPS64(0) *M), \ |
3107 "Initial heap size (in bytes); zero means use ergonomics") \ |
3144 "Initial heap size (in bytes); zero means use ergonomics") \ |
3108 \ |
3145 \ |
3109 product(uintx, MaxHeapSize, ScaleForWordSize(96*M), \ |
3146 product(uintx, MaxHeapSize, ScaleForWordSize(MIPS64_ONLY(2500) NOT_MIPS64(96) *M), \ |
3110 "Maximum heap size (in bytes)") \ |
3147 "Maximum heap size (in bytes)") \ |
3111 \ |
3148 \ |
3112 product(uintx, OldSize, ScaleForWordSize(4*M), \ |
3149 product(uintx, OldSize, ScaleForWordSize(4*M), \ |
3113 "Initial tenured generation size (in bytes)") \ |
3150 "Initial tenured generation size (in bytes)") \ |
3114 \ |
3151 \ |