src/share/vm/runtime/orderAccess.inline.hpp

Thu, 24 Nov 2016 11:27:57 +0100

author
tschatzl
date
Thu, 24 Nov 2016 11:27:57 +0100
changeset 9982
72053ed6f8d4
parent 6911
ce8f6bb717c9
permissions
-rw-r--r--

8057003: Large reference arrays cause extremely long synchronization times
Summary: Slice large object arrays into parts so that the synchronization of marking threads with an STW pause request does not take long.
Reviewed-by: ehelin, pliden
Contributed-by: maoliang.ml@alibaba-inc.com

goetz@6911 1 /*
goetz@6911 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
goetz@6911 3 * Copyright 2014 SAP AG. All rights reserved.
goetz@6911 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
goetz@6911 5 *
goetz@6911 6 * This code is free software; you can redistribute it and/or modify it
goetz@6911 7 * under the terms of the GNU General Public License version 2 only, as
goetz@6911 8 * published by the Free Software Foundation.
goetz@6911 9 *
goetz@6911 10 * This code is distributed in the hope that it will be useful, but WITHOUT
goetz@6911 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
goetz@6911 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
goetz@6911 13 * version 2 for more details (a copy is included in the LICENSE file that
goetz@6911 14 * accompanied this code).
goetz@6911 15 *
goetz@6911 16 * You should have received a copy of the GNU General Public License version
goetz@6911 17 * 2 along with this work; if not, write to the Free Software Foundation,
goetz@6911 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
goetz@6911 19 *
goetz@6911 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
goetz@6911 21 * or visit www.oracle.com if you need additional information or have any
goetz@6911 22 * questions.
goetz@6911 23 *
goetz@6911 24 */
goetz@6911 25
goetz@6911 26 #ifndef SHARE_VM_RUNTIME_ORDERACCESS_INLINE_HPP
goetz@6911 27 #define SHARE_VM_RUNTIME_ORDERACCESS_INLINE_HPP
goetz@6911 28
goetz@6911 29 #include "runtime/orderAccess.hpp"
goetz@6911 30
goetz@6911 31 // Linux
goetz@6911 32 #ifdef TARGET_OS_ARCH_linux_x86
goetz@6911 33 # include "orderAccess_linux_x86.inline.hpp"
goetz@6911 34 #endif
goetz@6911 35 #ifdef TARGET_OS_ARCH_linux_sparc
goetz@6911 36 # include "orderAccess_linux_sparc.inline.hpp"
goetz@6911 37 #endif
goetz@6911 38 #ifdef TARGET_OS_ARCH_linux_zero
goetz@6911 39 # include "orderAccess_linux_zero.inline.hpp"
goetz@6911 40 #endif
goetz@6911 41 #ifdef TARGET_OS_ARCH_linux_arm
goetz@6911 42 # include "orderAccess_linux_arm.inline.hpp"
goetz@6911 43 #endif
goetz@6911 44 #ifdef TARGET_OS_ARCH_linux_ppc
goetz@6911 45 # include "orderAccess_linux_ppc.inline.hpp"
goetz@6911 46 #endif
goetz@6911 47
goetz@6911 48 // Solaris
goetz@6911 49 #ifdef TARGET_OS_ARCH_solaris_x86
goetz@6911 50 # include "orderAccess_solaris_x86.inline.hpp"
goetz@6911 51 #endif
goetz@6911 52 #ifdef TARGET_OS_ARCH_solaris_sparc
goetz@6911 53 # include "orderAccess_solaris_sparc.inline.hpp"
goetz@6911 54 #endif
goetz@6911 55
goetz@6911 56 // Windows
goetz@6911 57 #ifdef TARGET_OS_ARCH_windows_x86
goetz@6911 58 # include "orderAccess_windows_x86.inline.hpp"
goetz@6911 59 #endif
goetz@6911 60
goetz@6911 61 // AIX
goetz@6911 62 #ifdef TARGET_OS_ARCH_aix_ppc
goetz@6911 63 # include "orderAccess_aix_ppc.inline.hpp"
goetz@6911 64 #endif
goetz@6911 65
goetz@6911 66 // BSD
goetz@6911 67 #ifdef TARGET_OS_ARCH_bsd_x86
goetz@6911 68 # include "orderAccess_bsd_x86.inline.hpp"
goetz@6911 69 #endif
goetz@6911 70 #ifdef TARGET_OS_ARCH_bsd_zero
goetz@6911 71 # include "orderAccess_bsd_zero.inline.hpp"
goetz@6911 72 #endif
goetz@6911 73
goetz@6911 74 #endif // SHARE_VM_RUNTIME_ORDERACCESS_INLINE_HPP

mercurial