Mercurial > hg > graal-compiler
comparison src/os/bsd/vm/os_bsd.inline.hpp @ 10405:f2110083203d
8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author | sla |
---|---|
date | Mon, 10 Jun 2013 11:30:51 +0200 |
parents | 63e54c37ac64 |
children | e95fc50106cf |
comparison
equal
deleted
inserted
replaced
10404:d0add7016434 | 10405:f2110083203d |
---|---|
284 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, |
285 const char* optval, socklen_t optlen) { | 285 const char* optval, socklen_t optlen) { |
286 return ::setsockopt(fd, level, optname, optval, optlen); | 286 return ::setsockopt(fd, level, optname, optval, optlen); |
287 } | 287 } |
288 | 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 | |
305 #endif // OS_BSD_VM_OS_BSD_INLINE_HPP | 289 #endif // OS_BSD_VM_OS_BSD_INLINE_HPP |