6204603: Modify hotspot to use new Solaris mmap semantics for class data archive file

Os::attempt_reserve_memory_at() now passes an address hint to mmap

Reviewed-by: kamg, dice
This commit is contained in:
Steve Bohne 2008-03-14 10:43:02 -04:00
parent 1e62d37cc0
commit 387f42921b
2 changed files with 39 additions and 11 deletions

View file

@ -156,6 +156,7 @@ class Solaris {
static int get_dev_zero_fd() { return _dev_zero_fd; }
static void set_dev_zero_fd(int fd) { _dev_zero_fd = fd; }
static char* mmap_chunk(char *addr, size_t size, int flags, int prot);
static char* anon_mmap(char* requested_addr, size_t bytes, size_t alignment_hint, bool fixed);
static bool mpss_sanity_check(bool warn, size_t * page_size);
static bool ism_sanity_check (bool warn, size_t * page_size);