370 |
370 |
371 // Reserve the space first, then map otherwise map will go right over some |
371 // Reserve the space first, then map otherwise map will go right over some |
372 // other reserved memory (like the code cache). |
372 // other reserved memory (like the code cache). |
373 ReservedSpace rs(size, alignment, false, requested_addr); |
373 ReservedSpace rs(size, alignment, false, requested_addr); |
374 if (!rs.is_reserved()) { |
374 if (!rs.is_reserved()) { |
375 fail_continue(err_msg("Unable to reserved shared space at required address " INTPTR_FORMAT, requested_addr)); |
375 fail_continue(err_msg("Unable to reserve shared space at required address " INTPTR_FORMAT, requested_addr)); |
376 return rs; |
376 return rs; |
377 } |
377 } |
378 // the reserved virtual memory is for mapping class data sharing archive |
378 // the reserved virtual memory is for mapping class data sharing archive |
379 MemTracker::record_virtual_memory_type((address)rs.base(), mtClassShared); |
379 MemTracker::record_virtual_memory_type((address)rs.base(), mtClassShared); |
380 |
380 |