src/share/vm/runtime/osThread.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 20,29 ****
--- 20,39 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
+ #ifndef SHARE_VM_RUNTIME_OSTHREAD_HPP
+ #define SHARE_VM_RUNTIME_OSTHREAD_HPP
+
+ #include "runtime/frame.hpp"
+ #include "runtime/handles.hpp"
+ #include "runtime/hpi.hpp"
+ #include "runtime/javaFrameAnchor.hpp"
+ #include "runtime/objectMonitor.hpp"
+ #include "utilities/top.hpp"
+
// The OSThread class holds OS-specific thread information. It is equivalent
// to the sys_thread_t structure of the classic JVM implementation.
// The thread states represented by the ThreadState values are platform-specific
// and are likely to be only approximate, because most OSes don't give you access
*** 89,99 ****
// For java intrinsics:
static ByteSize interrupted_offset() { return byte_offset_of(OSThread, _interrupted); }
// Platform dependent stuff
! #include "incls/_osThread_pd.hpp.incl"
};
// Utility class for use with condition variables:
class OSThreadWaitState : public StackObj {
--- 99,118 ----
// For java intrinsics:
static ByteSize interrupted_offset() { return byte_offset_of(OSThread, _interrupted); }
// Platform dependent stuff
! #ifdef TARGET_OS_FAMILY_linux
! # include "osThread_linux.hpp"
! #endif
! #ifdef TARGET_OS_FAMILY_solaris
! # include "osThread_solaris.hpp"
! #endif
! #ifdef TARGET_OS_FAMILY_windows
! # include "osThread_windows.hpp"
! #endif
!
};
// Utility class for use with condition variables:
class OSThreadWaitState : public StackObj {
*** 127,131 ****
--- 146,152 ----
}
~OSThreadContendState() {
_osthread->set_state(_old_state);
}
};
+
+ #endif // SHARE_VM_RUNTIME_OSTHREAD_HPP