src/hotspot/os_cpu/linux_zero/orderAccess_linux_zero.hpp
changeset 53244 9807daeb47c4
parent 50429 83aec1d357d4
child 54323 846bc643f4ef
equal deleted inserted replaced
53243:8bea4144b21c 53244:9807daeb47c4
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2007, 2008, 2009 Red Hat, Inc.
     3  * Copyright 2007, 2008, 2009 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
    21  * or visit www.oracle.com if you need additional information or have any
    21  * or visit www.oracle.com if you need additional information or have any
    22  * questions.
    22  * questions.
    23  *
    23  *
    24  */
    24  */
    25 
    25 
    26 #ifndef OS_CPU_LINUX_ZERO_VM_ORDERACCESS_LINUX_ZERO_HPP
    26 #ifndef OS_CPU_LINUX_ZERO_ORDERACCESS_LINUX_ZERO_HPP
    27 #define OS_CPU_LINUX_ZERO_VM_ORDERACCESS_LINUX_ZERO_HPP
    27 #define OS_CPU_LINUX_ZERO_ORDERACCESS_LINUX_ZERO_HPP
    28 
    28 
    29 // Included in orderAccess.hpp header file.
    29 // Included in orderAccess.hpp header file.
    30 
    30 
    31 #ifdef ARM
    31 #ifdef ARM
    32 
    32 
    81 inline void OrderAccess::acquire()    { LIGHT_MEM_BARRIER; }
    81 inline void OrderAccess::acquire()    { LIGHT_MEM_BARRIER; }
    82 inline void OrderAccess::release()    { LIGHT_MEM_BARRIER; }
    82 inline void OrderAccess::release()    { LIGHT_MEM_BARRIER; }
    83 
    83 
    84 inline void OrderAccess::fence()      { FULL_MEM_BARRIER;  }
    84 inline void OrderAccess::fence()      { FULL_MEM_BARRIER;  }
    85 
    85 
    86 #endif // OS_CPU_LINUX_ZERO_VM_ORDERACCESS_LINUX_ZERO_HPP
    86 #endif // OS_CPU_LINUX_ZERO_ORDERACCESS_LINUX_ZERO_HPP