Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/atomic.cpp @ 3960:f08d439fab8c
7089790: integrate bsd-port changes
Reviewed-by: kvn, twisti, jrose
Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
author | never |
---|---|
date | Sun, 25 Sep 2011 16:03:29 -0700 |
parents | 7d9e451f5416 |
children | cd3d6a6b95d9 |
comparison
equal
deleted
inserted
replaced
3959:eda6988c0d81 | 3960:f08d439fab8c |
---|---|
31 # include "os_solaris.inline.hpp" | 31 # include "os_solaris.inline.hpp" |
32 #endif | 32 #endif |
33 #ifdef TARGET_OS_FAMILY_windows | 33 #ifdef TARGET_OS_FAMILY_windows |
34 # include "os_windows.inline.hpp" | 34 # include "os_windows.inline.hpp" |
35 #endif | 35 #endif |
36 #ifdef TARGET_OS_FAMILY_bsd | |
37 # include "os_bsd.inline.hpp" | |
38 #endif | |
36 #ifdef TARGET_OS_ARCH_linux_x86 | 39 #ifdef TARGET_OS_ARCH_linux_x86 |
37 # include "atomic_linux_x86.inline.hpp" | 40 # include "atomic_linux_x86.inline.hpp" |
38 #endif | 41 #endif |
39 #ifdef TARGET_OS_ARCH_linux_sparc | 42 #ifdef TARGET_OS_ARCH_linux_sparc |
40 # include "atomic_linux_sparc.inline.hpp" | 43 # include "atomic_linux_sparc.inline.hpp" |
54 #ifdef TARGET_OS_ARCH_linux_arm | 57 #ifdef TARGET_OS_ARCH_linux_arm |
55 # include "atomic_linux_arm.inline.hpp" | 58 # include "atomic_linux_arm.inline.hpp" |
56 #endif | 59 #endif |
57 #ifdef TARGET_OS_ARCH_linux_ppc | 60 #ifdef TARGET_OS_ARCH_linux_ppc |
58 # include "atomic_linux_ppc.inline.hpp" | 61 # include "atomic_linux_ppc.inline.hpp" |
62 #endif | |
63 #ifdef TARGET_OS_ARCH_bsd_x86 | |
64 # include "atomic_bsd_x86.inline.hpp" | |
65 #endif | |
66 #ifdef TARGET_OS_ARCH_bsd_zero | |
67 # include "atomic_bsd_zero.inline.hpp" | |
59 #endif | 68 #endif |
60 | 69 |
61 jbyte Atomic::cmpxchg(jbyte exchange_value, volatile jbyte* dest, jbyte compare_value) { | 70 jbyte Atomic::cmpxchg(jbyte exchange_value, volatile jbyte* dest, jbyte compare_value) { |
62 assert(sizeof(jbyte) == 1, "assumption."); | 71 assert(sizeof(jbyte) == 1, "assumption."); |
63 uintptr_t dest_addr = (uintptr_t)dest; | 72 uintptr_t dest_addr = (uintptr_t)dest; |