Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psYoungGen.cpp @ 535:4e400c36026f
6783381: NUMA allocator: don't pretouch eden space with UseNUMA
Summary: Moved pretouching to MutableSpace. Also MutableSpace now turns on page interleaving for the region it covers.
Reviewed-by: jmasa, jcoomes
author | iveresov |
---|---|
date | Tue, 27 Jan 2009 18:13:59 -0800 |
parents | 850fdf70db2b |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
534:5cfd8d19e546 | 535:4e400c36026f |
---|---|
62 // spaces have been computed. | 62 // spaces have been computed. |
63 SpaceMangler::mangle_region(cmr); | 63 SpaceMangler::mangle_region(cmr); |
64 } | 64 } |
65 | 65 |
66 if (UseNUMA) { | 66 if (UseNUMA) { |
67 _eden_space = new MutableNUMASpace(); | 67 _eden_space = new MutableNUMASpace(virtual_space()->alignment()); |
68 } else { | 68 } else { |
69 _eden_space = new MutableSpace(); | 69 _eden_space = new MutableSpace(virtual_space()->alignment()); |
70 } | 70 } |
71 _from_space = new MutableSpace(); | 71 _from_space = new MutableSpace(virtual_space()->alignment()); |
72 _to_space = new MutableSpace(); | 72 _to_space = new MutableSpace(virtual_space()->alignment()); |
73 | 73 |
74 if (_eden_space == NULL || _from_space == NULL || _to_space == NULL) { | 74 if (_eden_space == NULL || _from_space == NULL || _to_space == NULL) { |
75 vm_exit_during_initialization("Could not allocate a young gen space"); | 75 vm_exit_during_initialization("Could not allocate a young gen space"); |
76 } | 76 } |
77 | 77 |