< prev index next >

src/share/vm/gc/parallel/objectStartArray.cpp

Print this page

        

*** 41,51 **** size_t bytes_to_reserve = reserved_region.word_size() / block_size_in_words; assert(bytes_to_reserve > 0, "Sanity"); bytes_to_reserve = ! align_size_up(bytes_to_reserve, os::vm_allocation_granularity()); // Do not use large-pages for the backing store. The one large page region // will be used for the heap proper. ReservedSpace backing_store(bytes_to_reserve); if (!backing_store.is_reserved()) { --- 41,51 ---- size_t bytes_to_reserve = reserved_region.word_size() / block_size_in_words; assert(bytes_to_reserve > 0, "Sanity"); bytes_to_reserve = ! align_up(bytes_to_reserve, os::vm_allocation_granularity()); // Do not use large-pages for the backing store. The one large page region // will be used for the heap proper. ReservedSpace backing_store(bytes_to_reserve); if (!backing_store.is_reserved()) {
*** 87,97 **** size_t requested_blocks_size_in_bytes = mr.word_size() / block_size_in_words; // Only commit memory in page sized chunks requested_blocks_size_in_bytes = ! align_size_up(requested_blocks_size_in_bytes, os::vm_page_size()); _covered_region = mr; size_t current_blocks_size_in_bytes = _blocks_region.byte_size(); --- 87,97 ---- size_t requested_blocks_size_in_bytes = mr.word_size() / block_size_in_words; // Only commit memory in page sized chunks requested_blocks_size_in_bytes = ! align_up(requested_blocks_size_in_bytes, os::vm_page_size()); _covered_region = mr; size_t current_blocks_size_in_bytes = _blocks_region.byte_size();
< prev index next >