Mercurial > hg > truffle
diff src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp @ 2256:173926398291
7018673: Zero: 6953144, 6990754 and 7009756 made some changes which broke Zero
Reviewed-by: kvn, chrisphi, twisti
author | twisti |
---|---|
date | Fri, 11 Feb 2011 03:17:53 -0800 |
parents | f95d63e2154a |
children | 63e54c37ac64 |
line wrap: on
line diff
--- a/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp Thu Feb 10 19:34:48 2011 -0800 +++ b/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp Fri Feb 11 03:17:53 2011 -0800 @@ -1,6 +1,6 @@ /* - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2007, 2008 Red Hat, Inc. + * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright 2007, 2008, 2011 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -300,4 +300,18 @@ (intptr_t) compare_value); } +inline jlong Atomic::load(volatile jlong* src) { + volatile jlong dest; + os::atomic_copy64(src, &dest); + return dest; +} + +inline void Atomic::store(jlong store_value, jlong* dest) { + os::atomic_copy64((volatile jlong*)&store_value, (volatile jlong*)dest); +} + +inline void Atomic::store(jlong store_value, volatile jlong* dest) { + os::atomic_copy64((volatile jlong*)&store_value, dest); +} + #endif // OS_CPU_LINUX_ZERO_VM_ATOMIC_LINUX_ZERO_INLINE_HPP