< prev index next >
src/os_cpu/linux_arm/vm/os_linux_arm.cpp
Print this page
rev 13030 : [mq]: add_const
*** 1,7 ****
/*
! * Copyright (c) 2008, 2016, 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) 2008, 2017, 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.
*** 616,630 ****
jlong old_value = *dest;
if (old_value == compare_value)
*dest = exchange_value;
return old_value;
}
! typedef jlong load_long_func_t(volatile jlong*);
load_long_func_t* os::atomic_load_long_func = os::atomic_load_long_bootstrap;
! jlong os::atomic_load_long_bootstrap(volatile jlong* src) {
// try to use the stub:
load_long_func_t* func = CAST_TO_FN_PTR(load_long_func_t*, StubRoutines::atomic_load_long_entry());
if (func != NULL) {
os::atomic_load_long_func = func;
--- 616,630 ----
jlong old_value = *dest;
if (old_value == compare_value)
*dest = exchange_value;
return old_value;
}
! typedef jlong load_long_func_t(const volatile jlong*);
load_long_func_t* os::atomic_load_long_func = os::atomic_load_long_bootstrap;
! jlong os::atomic_load_long_bootstrap(const volatile jlong* src) {
// try to use the stub:
load_long_func_t* func = CAST_TO_FN_PTR(load_long_func_t*, StubRoutines::atomic_load_long_entry());
if (func != NULL) {
os::atomic_load_long_func = func;
< prev index next >