Mercurial > hg > graal-compiler
comparison src/os/linux/vm/os_linux.cpp @ 642:660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
Summary: Use zero based compressed oops if java heap is below 32gb and unscaled compressed oops if java heap is below 4gb.
Reviewed-by: never, twisti, jcoomes, coleenp
author | kvn |
---|---|
date | Thu, 12 Mar 2009 10:37:46 -0700 |
parents | 773234c55e8c |
children | bd441136a5ce |
comparison
equal
deleted
inserted
replaced
641:6af0a709d52b | 642:660978a2a31a |
---|---|
2580 | 2580 |
2581 #ifndef SHM_HUGETLB | 2581 #ifndef SHM_HUGETLB |
2582 #define SHM_HUGETLB 04000 | 2582 #define SHM_HUGETLB 04000 |
2583 #endif | 2583 #endif |
2584 | 2584 |
2585 char* os::reserve_memory_special(size_t bytes) { | 2585 char* os::reserve_memory_special(size_t bytes, char* req_addr) { |
2586 assert(UseLargePages, "only for large pages"); | 2586 assert(UseLargePages, "only for large pages"); |
2587 | 2587 |
2588 key_t key = IPC_PRIVATE; | 2588 key_t key = IPC_PRIVATE; |
2589 char *addr; | 2589 char *addr; |
2590 | 2590 |