src/hotspot/share/runtime/os.hpp
changeset 50178 7b0291382aff
parent 49984 aa3afd9bda87
child 50184 1a4101ebec92
equal deleted inserted replaced
50177:9806f23d5e5e 50178:7b0291382aff
   230   }
   230   }
   231   static julong available_memory();
   231   static julong available_memory();
   232   static julong physical_memory();
   232   static julong physical_memory();
   233   static bool has_allocatable_memory_limit(julong* limit);
   233   static bool has_allocatable_memory_limit(julong* limit);
   234   static bool is_server_class_machine();
   234   static bool is_server_class_machine();
       
   235 
       
   236   // Returns the id of the processor on which the calling thread is currently executing.
       
   237   // The returned value is guaranteed to be between 0 and (os::processor_count() - 1).
       
   238   static uint processor_id();
   235 
   239 
   236   // number of CPUs
   240   // number of CPUs
   237   static int processor_count() {
   241   static int processor_count() {
   238     return _processor_count;
   242     return _processor_count;
   239   }
   243   }