src/share/vm/runtime/os.hpp

Print this page
rev 6280 : 8040140: System.nanoTime() is slow and non-monotonic on OS X
6864866: add a flag to use result of gethrtime() directly in os::getTimeNanos() on Solaris
Reviewed-by: sspitsyn, shade, dholmes


  31 #include "runtime/handles.hpp"
  32 #include "utilities/top.hpp"
  33 #ifdef TARGET_OS_FAMILY_linux
  34 # include "jvm_linux.h"
  35 # include <setjmp.h>
  36 #endif
  37 #ifdef TARGET_OS_FAMILY_solaris
  38 # include "jvm_solaris.h"
  39 # include <setjmp.h>
  40 #endif
  41 #ifdef TARGET_OS_FAMILY_windows
  42 # include "jvm_windows.h"
  43 #endif
  44 #ifdef TARGET_OS_FAMILY_aix
  45 # include "jvm_aix.h"
  46 # include <setjmp.h>
  47 #endif
  48 #ifdef TARGET_OS_FAMILY_bsd
  49 # include "jvm_bsd.h"
  50 # include <setjmp.h>



  51 #endif
  52 
  53 class AgentLibrary;
  54 
  55 // os defines the interface to operating system; this includes traditional
  56 // OS services (time, I/O) as well as other functionality with system-
  57 // dependent code.
  58 
  59 typedef void (*dll_func)(...);
  60 
  61 class Thread;
  62 class JavaThread;
  63 class Event;
  64 class DLL;
  65 class FileHandle;
  66 template<class E> class GrowableArray;
  67 
  68 // %%%%% Moved ThreadState, START_FN, OSThread to new osThread.hpp. -- Rose
  69 
  70 // Platform-independent error return values from OS functions




  31 #include "runtime/handles.hpp"
  32 #include "utilities/top.hpp"
  33 #ifdef TARGET_OS_FAMILY_linux
  34 # include "jvm_linux.h"
  35 # include <setjmp.h>
  36 #endif
  37 #ifdef TARGET_OS_FAMILY_solaris
  38 # include "jvm_solaris.h"
  39 # include <setjmp.h>
  40 #endif
  41 #ifdef TARGET_OS_FAMILY_windows
  42 # include "jvm_windows.h"
  43 #endif
  44 #ifdef TARGET_OS_FAMILY_aix
  45 # include "jvm_aix.h"
  46 # include <setjmp.h>
  47 #endif
  48 #ifdef TARGET_OS_FAMILY_bsd
  49 # include "jvm_bsd.h"
  50 # include <setjmp.h>
  51 # ifdef __APPLE__
  52 #  include <mach/mach_time.h>
  53 # endif
  54 #endif
  55 
  56 class AgentLibrary;
  57 
  58 // os defines the interface to operating system; this includes traditional
  59 // OS services (time, I/O) as well as other functionality with system-
  60 // dependent code.
  61 
  62 typedef void (*dll_func)(...);
  63 
  64 class Thread;
  65 class JavaThread;
  66 class Event;
  67 class DLL;
  68 class FileHandle;
  69 template<class E> class GrowableArray;
  70 
  71 // %%%%% Moved ThreadState, START_FN, OSThread to new osThread.hpp. -- Rose
  72 
  73 // Platform-independent error return values from OS functions