src/share/vm/runtime/os.hpp

Print this page
rev 4810 : 8016697: PPC64 (part 5): Use stubs to implement safefetch
Summary: Implement Safefetch as stub routines. This reduces compiler and os dependencies.
Reviewed-by: twisti, kvn


 880 
 881 
 882  protected:
 883   static long _rand_seed;                   // seed for random number generator
 884   static int _processor_count;              // number of processors
 885 
 886   static char* format_boot_path(const char* format_string,
 887                                 const char* home,
 888                                 int home_len,
 889                                 char fileSep,
 890                                 char pathSep);
 891   static bool set_boot_path(char fileSep, char pathSep);
 892   static char** split_path(const char* path, int* n);
 893 };
 894 
 895 // Note that "PAUSE" is almost always used with synchronization
 896 // so arguably we should provide Atomic::SpinPause() instead
 897 // of the global SpinPause() with C linkage.
 898 // It'd also be eligible for inlining on many platforms.
 899 
 900 extern "C" int SpinPause () ;
 901 extern "C" int SafeFetch32 (int * adr, int errValue) ;
 902 extern "C" intptr_t SafeFetchN (intptr_t * adr, intptr_t errValue) ;
 903 
 904 #endif // SHARE_VM_RUNTIME_OS_HPP


 880 
 881 
 882  protected:
 883   static long _rand_seed;                   // seed for random number generator
 884   static int _processor_count;              // number of processors
 885 
 886   static char* format_boot_path(const char* format_string,
 887                                 const char* home,
 888                                 int home_len,
 889                                 char fileSep,
 890                                 char pathSep);
 891   static bool set_boot_path(char fileSep, char pathSep);
 892   static char** split_path(const char* path, int* n);
 893 };
 894 
 895 // Note that "PAUSE" is almost always used with synchronization
 896 // so arguably we should provide Atomic::SpinPause() instead
 897 // of the global SpinPause() with C linkage.
 898 // It'd also be eligible for inlining on many platforms.
 899 
 900 extern "C" int SpinPause();


 901 
 902 #endif // SHARE_VM_RUNTIME_OS_HPP