< prev index next >

src/hotspot/share/runtime/os.hpp

Print this page
rev 51258 : [mq]: spin


1017   static int _initial_active_processor_count; // number of active processors during initialization.
1018 
1019   static char* format_boot_path(const char* format_string,
1020                                 const char* home,
1021                                 int home_len,
1022                                 char fileSep,
1023                                 char pathSep);
1024   static bool set_boot_path(char fileSep, char pathSep);
1025 
1026 };
1027 
1028 #ifndef _WINDOWS
1029 template<> struct IsRegisteredEnum<os::SuspendResume::State> : public TrueType {};
1030 #endif // !_WINDOWS
1031 
1032 // Note that "PAUSE" is almost always used with synchronization
1033 // so arguably we should provide Atomic::SpinPause() instead
1034 // of the global SpinPause() with C linkage.
1035 // It'd also be eligible for inlining on many platforms.
1036 






1037 extern "C" int SpinPause();

1038 
1039 #endif // SHARE_VM_RUNTIME_OS_HPP


1017   static int _initial_active_processor_count; // number of active processors during initialization.
1018 
1019   static char* format_boot_path(const char* format_string,
1020                                 const char* home,
1021                                 int home_len,
1022                                 char fileSep,
1023                                 char pathSep);
1024   static bool set_boot_path(char fileSep, char pathSep);
1025 
1026 };
1027 
1028 #ifndef _WINDOWS
1029 template<> struct IsRegisteredEnum<os::SuspendResume::State> : public TrueType {};
1030 #endif // !_WINDOWS
1031 
1032 // Note that "PAUSE" is almost always used with synchronization
1033 // so arguably we should provide Atomic::SpinPause() instead
1034 // of the global SpinPause() with C linkage.
1035 // It'd also be eligible for inlining on many platforms.
1036 
1037 #if defined(X86) && !defined(_WINDOWS)
1038 extern "C" int inline SpinPause() {
1039   __asm__ __volatile__ ("pause");
1040   return 1;
1041 }
1042 #else
1043 extern "C" int SpinPause();
1044 #endif
1045 
1046 #endif // SHARE_VM_RUNTIME_OS_HPP
< prev index next >