Mercurial > hg > truffle
annotate src/os_cpu/solaris_sparc/vm/globals_solaris_sparc.hpp @ 12250:9044964f9163
8024669: Native OOME when allocating after changes to maximum heap supporting Coops sizing on sparcv9
Summary: After changes in 8010722 the ergonomics for calculating the size of the heap that supports zero based compressed oops changed. This lead to the VM actually using zero based compressed oops. Due to low default HeapBaseMinAddress, the OS mapping in the application image at the same address, and limitations of the malloc implementation on Solaris this resulted in very little C heap available for the VM. So the VM immediately gives a native OOME when the machine has lots of physical memory (>=32G). The solution is to increase the HeapBaseMinAddress so that the VM has enough C heap.
Reviewed-by: kvn, brutisso
author | tschatzl |
---|---|
date | Wed, 18 Sep 2013 13:18:52 +0200 |
parents | 91bf0bdae37b |
children | de6a9e811145 |
rev | line source |
---|---|
0 | 1 /* |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
0 | 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 it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef OS_CPU_SOLARIS_SPARC_VM_GLOBALS_SOLARIS_SPARC_HPP |
26 #define OS_CPU_SOLARIS_SPARC_VM_GLOBALS_SOLARIS_SPARC_HPP | |
27 | |
0 | 28 // |
29 // Sets the default values for platform dependent flags used by the runtime system. | |
30 // (see globals.hpp) | |
31 // | |
32 | |
33 define_pd_global(uintx, JVMInvokeMethodSlack, 12288); | |
34 define_pd_global(intx, CompilerThreadStackSize, 0); | |
35 | |
8804
91bf0bdae37b
8008217: CDS: Class data sharing limits the malloc heap on Solaris
coleenp
parents:
6916
diff
changeset
|
36 // Used on 64 bit platforms for UseCompressedOops base address |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
37 #ifdef _LP64 |
12250
9044964f9163
8024669: Native OOME when allocating after changes to maximum heap supporting Coops sizing on sparcv9
tschatzl
parents:
8804
diff
changeset
|
38 // use 6G as default base address because by default the OS maps the application |
9044964f9163
8024669: Native OOME when allocating after changes to maximum heap supporting Coops sizing on sparcv9
tschatzl
parents:
8804
diff
changeset
|
39 // to 4G on Solaris-Sparc. This leaves at least 2G for the native heap. |
9044964f9163
8024669: Native OOME when allocating after changes to maximum heap supporting Coops sizing on sparcv9
tschatzl
parents:
8804
diff
changeset
|
40 define_pd_global(uintx, HeapBaseMinAddress, CONST64(6)*G); |
6725
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
41 #else |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
42 define_pd_global(uintx, HeapBaseMinAddress, 2*G); |
da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
1972
diff
changeset
|
43 #endif |
642
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
0
diff
changeset
|
44 |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
0
diff
changeset
|
45 |
1972 | 46 |
47 #endif // OS_CPU_SOLARIS_SPARC_VM_GLOBALS_SOLARIS_SPARC_HPP |