equal
deleted
inserted
replaced
56 #include "runtime/java.hpp" |
56 #include "runtime/java.hpp" |
57 #include "runtime/javaCalls.hpp" |
57 #include "runtime/javaCalls.hpp" |
58 #include "runtime/mutexLocker.hpp" |
58 #include "runtime/mutexLocker.hpp" |
59 #include "runtime/objectMonitor.hpp" |
59 #include "runtime/objectMonitor.hpp" |
60 #include "runtime/orderAccess.inline.hpp" |
60 #include "runtime/orderAccess.inline.hpp" |
|
61 #include "runtime/os.hpp" |
61 #include "runtime/osThread.hpp" |
62 #include "runtime/osThread.hpp" |
62 #include "runtime/perfMemory.hpp" |
63 #include "runtime/perfMemory.hpp" |
63 #include "runtime/sharedRuntime.hpp" |
64 #include "runtime/sharedRuntime.hpp" |
64 #include "runtime/statSampler.hpp" |
65 #include "runtime/statSampler.hpp" |
65 #include "runtime/stubRoutines.hpp" |
66 #include "runtime/stubRoutines.hpp" |
376 // Default data page size is influenced either by linker options (-bdatapsize) |
377 // Default data page size is influenced either by linker options (-bdatapsize) |
377 // or by environment variable LDR_CNTRL (suboption DATAPSIZE). If none is given, |
378 // or by environment variable LDR_CNTRL (suboption DATAPSIZE). If none is given, |
378 // default should be 4K. |
379 // default should be 4K. |
379 size_t data_page_size = SIZE_4K; |
380 size_t data_page_size = SIZE_4K; |
380 { |
381 { |
381 void* p = ::malloc(SIZE_16M); |
382 void* p = os::malloc(SIZE_16M, mtInternal); |
382 guarantee(p != NULL, "malloc failed"); |
383 guarantee(p != NULL, "malloc failed"); |
383 data_page_size = os::Aix::query_pagesize(p); |
384 data_page_size = os::Aix::query_pagesize(p); |
384 ::free(p); |
385 os::free(p); |
385 } |
386 } |
386 |
387 |
387 // query default shm page size (LDR_CNTRL SHMPSIZE) |
388 // query default shm page size (LDR_CNTRL SHMPSIZE) |
388 { |
389 { |
389 const int shmid = ::shmget(IPC_PRIVATE, 1, IPC_CREAT | S_IRUSR | S_IWUSR); |
390 const int shmid = ::shmget(IPC_PRIVATE, 1, IPC_CREAT | S_IRUSR | S_IWUSR); |