src/hotspot/os/aix/os_aix.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Sdiff src/hotspot/os/aix

src/hotspot/os/aix/os_aix.cpp

Print this page




3598 
3599   return JNI_OK;
3600 }
3601 
3602 // Mark the polling page as unreadable
3603 void os::make_polling_page_unreadable(void) {
3604   if (!guard_memory((char*)_polling_page, Aix::page_size())) {
3605     fatal("Could not disable polling page");
3606   }
3607 };
3608 
3609 // Mark the polling page as readable
3610 void os::make_polling_page_readable(void) {
3611   // Changed according to os_linux.cpp.
3612   if (!checked_mprotect((char *)_polling_page, Aix::page_size(), PROT_READ)) {
3613     fatal("Could not enable polling page at " PTR_FORMAT, _polling_page);
3614   }
3615 };
3616 
3617 int os::active_processor_count() {








3618   int online_cpus = ::sysconf(_SC_NPROCESSORS_ONLN);
3619   assert(online_cpus > 0 && online_cpus <= processor_count(), "sanity check");
3620   return online_cpus;
3621 }
3622 
3623 void os::set_native_thread_name(const char *name) {
3624   // Not yet implemented.
3625   return;
3626 }
3627 
3628 bool os::distribute_processes(uint length, uint* distribution) {
3629   // Not yet implemented.
3630   return false;
3631 }
3632 
3633 bool os::bind_to_processor(uint processor_id) {
3634   // Not yet implemented.
3635   return false;
3636 }
3637 




3598 
3599   return JNI_OK;
3600 }
3601 
3602 // Mark the polling page as unreadable
3603 void os::make_polling_page_unreadable(void) {
3604   if (!guard_memory((char*)_polling_page, Aix::page_size())) {
3605     fatal("Could not disable polling page");
3606   }
3607 };
3608 
3609 // Mark the polling page as readable
3610 void os::make_polling_page_readable(void) {
3611   // Changed according to os_linux.cpp.
3612   if (!checked_mprotect((char *)_polling_page, Aix::page_size(), PROT_READ)) {
3613     fatal("Could not enable polling page at " PTR_FORMAT, _polling_page);
3614   }
3615 };
3616 
3617 int os::active_processor_count() {
3618   // User has overridden the number of active processors
3619   if (ActiveProcessorCount > 0) {
3620     log_trace(os)("active_processor_count: "
3621                   "active processor count set by user : %d",
3622                   ActiveProcessorCount);
3623     return ActiveProcessorCount;
3624   }
3625 
3626   int online_cpus = ::sysconf(_SC_NPROCESSORS_ONLN);
3627   assert(online_cpus > 0 && online_cpus <= processor_count(), "sanity check");
3628   return online_cpus;
3629 }
3630 
3631 void os::set_native_thread_name(const char *name) {
3632   // Not yet implemented.
3633   return;
3634 }
3635 
3636 bool os::distribute_processes(uint length, uint* distribution) {
3637   // Not yet implemented.
3638   return false;
3639 }
3640 
3641 bool os::bind_to_processor(uint processor_id) {
3642   // Not yet implemented.
3643   return false;
3644 }
3645 


src/hotspot/os/aix/os_aix.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File