equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007, 2008, 2011, 2015, Red Hat, Inc. |
3 * Copyright 2007, 2008, 2011, 2015, Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
308 (volatile intptr_t*) dest, |
308 (volatile intptr_t*) dest, |
309 (intptr_t) compare_value, |
309 (intptr_t) compare_value, |
310 order); |
310 order); |
311 } |
311 } |
312 |
312 |
313 inline jlong Atomic::load(volatile jlong* src) { |
313 inline jlong Atomic::load(const volatile jlong* src) { |
314 volatile jlong dest; |
314 volatile jlong dest; |
315 os::atomic_copy64(src, &dest); |
315 os::atomic_copy64(src, &dest); |
316 return dest; |
316 return dest; |
317 } |
317 } |
318 |
318 |