src/hotspot/share/runtime/os.hpp
branchstuefe-new-metaspace-branch
changeset 58107 69c38b90014c
parent 58063 bdf136b8ae0e
parent 58095 adc72cd1d1f2
child 58199 595fcbebaa77
equal deleted inserted replaced
58099:5aeb07390c74 58107:69c38b90014c
   464   static void free_thread(OSThread* osthread);
   464   static void free_thread(OSThread* osthread);
   465 
   465 
   466   // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
   466   // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
   467   static intx current_thread_id();
   467   static intx current_thread_id();
   468   static int current_process_id();
   468   static int current_process_id();
   469   // Implementation of java.lang.Thread.sleep for JavaThreads
   469 
   470   static int sleep(JavaThread* thread, jlong ms);
       
   471   // Short standalone OS sleep routines suitable for slow path spin loop.
   470   // Short standalone OS sleep routines suitable for slow path spin loop.
   472   // Ignores safepoints/suspension/Thread.interrupt() (so keep it short).
   471   // Ignores safepoints/suspension/Thread.interrupt() (so keep it short).
   473   // ms/ns = 0, will sleep for the least amount of time allowed by the OS.
   472   // ms/ns = 0, will sleep for the least amount of time allowed by the OS.
   474   // Maximum sleep time is just under 1 second.
   473   // Maximum sleep time is just under 1 second.
   475   static void naked_short_sleep(jlong ms);
   474   static void naked_short_sleep(jlong ms);
   740   static void* malloc  (size_t size, MEMFLAGS flags, const NativeCallStack& stack);
   739   static void* malloc  (size_t size, MEMFLAGS flags, const NativeCallStack& stack);
   741   static void* malloc  (size_t size, MEMFLAGS flags);
   740   static void* malloc  (size_t size, MEMFLAGS flags);
   742   static void* realloc (void *memblock, size_t size, MEMFLAGS flag, const NativeCallStack& stack);
   741   static void* realloc (void *memblock, size_t size, MEMFLAGS flag, const NativeCallStack& stack);
   743   static void* realloc (void *memblock, size_t size, MEMFLAGS flag);
   742   static void* realloc (void *memblock, size_t size, MEMFLAGS flag);
   744 
   743 
       
   744   // handles NULL pointers
   745   static void  free    (void *memblock);
   745   static void  free    (void *memblock);
   746   static char* strdup(const char *, MEMFLAGS flags = mtInternal);  // Like strdup
   746   static char* strdup(const char *, MEMFLAGS flags = mtInternal);  // Like strdup
   747   // Like strdup, but exit VM when strdup() returns NULL
   747   // Like strdup, but exit VM when strdup() returns NULL
   748   static char* strdup_check_oom(const char*, MEMFLAGS flags = mtInternal);
   748   static char* strdup_check_oom(const char*, MEMFLAGS flags = mtInternal);
   749 
   749