Mercurial > hg > truffle
comparison src/os/bsd/vm/os_bsd.inline.hpp @ 8675:63e54c37ac64
8008959: Fix non-PCH build on Linux, Windows and MacOS X
Summary: Fix the build without precompiled headers by either including the missing ".inline.hpp" files into the appropriate files or by turning inline-functions declared in header files into ordinary functions in ".cpp" files.
Reviewed-by: coleenp, stefank, dholmes
author | simonis |
---|---|
date | Wed, 27 Feb 2013 09:40:30 +0100 |
parents | 203f64878aab |
children | f2110083203d |
comparison
equal
deleted
inserted
replaced
8105:94478a033036 | 8675:63e54c37ac64 |
---|---|
23 */ | 23 */ |
24 | 24 |
25 #ifndef OS_BSD_VM_OS_BSD_INLINE_HPP | 25 #ifndef OS_BSD_VM_OS_BSD_INLINE_HPP |
26 #define OS_BSD_VM_OS_BSD_INLINE_HPP | 26 #define OS_BSD_VM_OS_BSD_INLINE_HPP |
27 | 27 |
28 #include "runtime/atomic.hpp" | |
29 #include "runtime/atomic.inline.hpp" | 28 #include "runtime/atomic.inline.hpp" |
30 #include "runtime/os.hpp" | 29 #include "runtime/os.hpp" |
31 | 30 |
32 #ifdef TARGET_OS_ARCH_bsd_x86 | 31 #ifdef TARGET_OS_ARCH_bsd_x86 |
33 # include "orderAccess_bsd_x86.inline.hpp" | 32 # include "orderAccess_bsd_x86.inline.hpp" |
284 | 283 |
285 inline int os::set_sock_opt(int fd, int level, int optname, | 284 inline int os::set_sock_opt(int fd, int level, int optname, |
286 const char* optval, socklen_t optlen) { | 285 const char* optval, socklen_t optlen) { |
287 return ::setsockopt(fd, level, optname, optval, optlen); | 286 return ::setsockopt(fd, level, optname, optval, optlen); |
288 } | 287 } |
288 | |
289 inline void os::Bsd::SuspendResume::set_suspended() { | |
290 jint temp, temp2; | |
291 do { | |
292 temp = _state; | |
293 temp2 = Atomic::cmpxchg(temp | SR_SUSPENDED, &_state, temp); | |
294 } while (temp2 != temp); | |
295 } | |
296 | |
297 inline void os::Bsd::SuspendResume::clear_suspended() { | |
298 jint temp, temp2; | |
299 do { | |
300 temp = _state; | |
301 temp2 = Atomic::cmpxchg(temp & ~SR_SUSPENDED, &_state, temp); | |
302 } while (temp2 != temp); | |
303 } | |
304 | |
289 #endif // OS_BSD_VM_OS_BSD_INLINE_HPP | 305 #endif // OS_BSD_VM_OS_BSD_INLINE_HPP |