comparison src/share/vm/gc_implementation/parallelScavenge/psOldGen.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 eb28cf662f56
children 0fbdb4381b99
comparison
equal deleted inserted replaced
534:5cfd8d19e546 535:4e400c36026f
114 114
115 // 115 //
116 // ObjectSpace stuff 116 // ObjectSpace stuff
117 // 117 //
118 118
119 _object_space = new MutableSpace(); 119 _object_space = new MutableSpace(virtual_space()->alignment());
120 120
121 if (_object_space == NULL) 121 if (_object_space == NULL)
122 vm_exit_during_initialization("Could not allocate an old gen space"); 122 vm_exit_during_initialization("Could not allocate an old gen space");
123 123
124 object_space()->initialize(cmr, 124 object_space()->initialize(cmr,
383 size_t new_word_size = new_memregion.word_size(); 383 size_t new_word_size = new_memregion.word_size();
384 384
385 start_array()->set_covered_region(new_memregion); 385 start_array()->set_covered_region(new_memregion);
386 Universe::heap()->barrier_set()->resize_covered_region(new_memregion); 386 Universe::heap()->barrier_set()->resize_covered_region(new_memregion);
387 387
388 HeapWord* const virtual_space_high = (HeapWord*) virtual_space()->high();
389
390 // ALWAYS do this last!! 388 // ALWAYS do this last!!
391 object_space()->set_end(virtual_space_high); 389 object_space()->initialize(new_memregion,
390 SpaceDecorator::DontClear,
391 SpaceDecorator::DontMangle);
392 392
393 assert(new_word_size == heap_word_size(object_space()->capacity_in_bytes()), 393 assert(new_word_size == heap_word_size(object_space()->capacity_in_bytes()),
394 "Sanity"); 394 "Sanity");
395 } 395 }
396 396