equal
deleted
inserted
replaced
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 |