< prev index next >

src/share/vm/runtime/os.hpp

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_OS_HPP
  26 #define SHARE_VM_RUNTIME_OS_HPP
  27 
  28 #include "jvmtifiles/jvmti.h"
  29 #include "runtime/atomic.hpp"
  30 #include "runtime/extendedPC.hpp"
  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 class NativeCallStack;
  70 
  71 template<class E> class GrowableArray;
  72 
  73 // %%%%% Moved ThreadState, START_FN, OSThread to new osThread.hpp. -- Rose
  74 
  75 // Platform-independent error return values from OS functions
  76 enum OSReturn {


 828 # include "os_linux.hpp"
 829 # include "os_posix.hpp"
 830 #endif
 831 #ifdef TARGET_OS_FAMILY_solaris
 832 # include "os_solaris.hpp"
 833 # include "os_posix.hpp"
 834 #endif
 835 #ifdef TARGET_OS_FAMILY_windows
 836 # include "os_windows.hpp"
 837 #endif
 838 #ifdef TARGET_OS_FAMILY_aix
 839 # include "os_aix.hpp"
 840 # include "os_posix.hpp"
 841 #endif
 842 #ifdef TARGET_OS_FAMILY_bsd
 843 # include "os_posix.hpp"
 844 # include "os_bsd.hpp"
 845 #endif
 846 #ifdef TARGET_OS_ARCH_linux_x86
 847 # include "os_linux_x86.hpp"



 848 #endif
 849 #ifdef TARGET_OS_ARCH_linux_sparc
 850 # include "os_linux_sparc.hpp"
 851 #endif
 852 #ifdef TARGET_OS_ARCH_linux_zero
 853 # include "os_linux_zero.hpp"
 854 #endif
 855 #ifdef TARGET_OS_ARCH_solaris_x86
 856 # include "os_solaris_x86.hpp"
 857 #endif
 858 #ifdef TARGET_OS_ARCH_solaris_sparc
 859 # include "os_solaris_sparc.hpp"
 860 #endif
 861 #ifdef TARGET_OS_ARCH_windows_x86
 862 # include "os_windows_x86.hpp"
 863 #endif
 864 #ifdef TARGET_OS_ARCH_linux_arm
 865 # include "os_linux_arm.hpp"
 866 #endif
 867 #ifdef TARGET_OS_ARCH_linux_ppc




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_OS_HPP
  26 #define SHARE_VM_RUNTIME_OS_HPP
  27 
  28 #include "jvmtifiles/jvmti.h"
  29 #include "runtime/atomic.hpp"
  30 #include "runtime/extendedPC.hpp"

  31 #include "utilities/top.hpp"
  32 #ifdef TARGET_OS_FAMILY_linux
  33 # include "jvm_linux.h"
  34 # include <setjmp.h>
  35 #endif
  36 #ifdef TARGET_OS_FAMILY_solaris
  37 # include "jvm_solaris.h"
  38 # include <setjmp.h>
  39 #endif
  40 #ifdef TARGET_OS_FAMILY_windows
  41 # include "jvm_windows.h"
  42 #endif
  43 #ifdef TARGET_OS_FAMILY_aix
  44 # include "jvm_aix.h"
  45 # include <setjmp.h>
  46 #endif
  47 #ifdef TARGET_OS_FAMILY_bsd
  48 # include "jvm_bsd.h"
  49 # include <setjmp.h>
  50 # ifdef __APPLE__
  51 #  include <mach/mach_time.h>
  52 # endif
  53 #endif
  54 
  55 class AgentLibrary;
  56 class methodHandle;
  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 class NativeCallStack;
  70 
  71 template<class E> class GrowableArray;
  72 
  73 // %%%%% Moved ThreadState, START_FN, OSThread to new osThread.hpp. -- Rose
  74 
  75 // Platform-independent error return values from OS functions
  76 enum OSReturn {


 828 # include "os_linux.hpp"
 829 # include "os_posix.hpp"
 830 #endif
 831 #ifdef TARGET_OS_FAMILY_solaris
 832 # include "os_solaris.hpp"
 833 # include "os_posix.hpp"
 834 #endif
 835 #ifdef TARGET_OS_FAMILY_windows
 836 # include "os_windows.hpp"
 837 #endif
 838 #ifdef TARGET_OS_FAMILY_aix
 839 # include "os_aix.hpp"
 840 # include "os_posix.hpp"
 841 #endif
 842 #ifdef TARGET_OS_FAMILY_bsd
 843 # include "os_posix.hpp"
 844 # include "os_bsd.hpp"
 845 #endif
 846 #ifdef TARGET_OS_ARCH_linux_x86
 847 # include "os_linux_x86.hpp"
 848 #endif
 849 #ifdef TARGET_OS_ARCH_linux_aarch64
 850 # include "os_linux_aarch64.hpp"
 851 #endif
 852 #ifdef TARGET_OS_ARCH_linux_sparc
 853 # include "os_linux_sparc.hpp"
 854 #endif
 855 #ifdef TARGET_OS_ARCH_linux_zero
 856 # include "os_linux_zero.hpp"
 857 #endif
 858 #ifdef TARGET_OS_ARCH_solaris_x86
 859 # include "os_solaris_x86.hpp"
 860 #endif
 861 #ifdef TARGET_OS_ARCH_solaris_sparc
 862 # include "os_solaris_sparc.hpp"
 863 #endif
 864 #ifdef TARGET_OS_ARCH_windows_x86
 865 # include "os_windows_x86.hpp"
 866 #endif
 867 #ifdef TARGET_OS_ARCH_linux_arm
 868 # include "os_linux_arm.hpp"
 869 #endif
 870 #ifdef TARGET_OS_ARCH_linux_ppc


< prev index next >