hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.hpp
changeset 46523 cbcc0ebaa044
parent 40655 9f644073d3a0
child 46958 a13bd8c6b7a2
equal deleted inserted replaced
46522:86b13b03a053 46523:cbcc0ebaa044
     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