src/os/linux/vm/thread_linux.inline.hpp

Tue, 28 May 2013 09:32:06 +0200

author
tschatzl
date
Tue, 28 May 2013 09:32:06 +0200
changeset 5204
e72f7eecc96d
parent 4299
f34d701e952e
child 6876
710a3c8b516e
child 6911
ce8f6bb717c9
permissions
-rw-r--r--

8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
Summary: Fixed the output of G1SummarizeRSetStats: too small datatype for the number of concurrently processed cards, added concurrent remembered set thread time retrieval for Linux and Windows (BSD uses os::elapsedTime() now), and other cleanup. The information presented during VM operation is now relative to the previous output, not always cumulative if G1SummarizeRSetStatsPeriod > 0. At VM exit, the code prints a cumulative summary.
Reviewed-by: johnc, jwilhelm

duke@435 1 /*
trims@2708 2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
duke@435 22 *
duke@435 23 */
duke@435 24
stefank@2314 25 #ifndef OS_LINUX_VM_THREAD_LINUX_INLINE_HPP
stefank@2314 26 #define OS_LINUX_VM_THREAD_LINUX_INLINE_HPP
stefank@2314 27
stefank@4299 28 #ifndef SHARE_VM_RUNTIME_THREAD_INLINE_HPP_SCOPE
stefank@4299 29 #error "This file should only be included from thread.inline.hpp"
stefank@4299 30 #endif
stefank@4299 31
stefank@2314 32 #include "runtime/atomic.hpp"
stefank@2314 33 #include "runtime/prefetch.hpp"
stefank@2314 34 #include "runtime/thread.hpp"
stefank@2314 35 #include "runtime/threadLocalStorage.hpp"
stefank@2314 36 #ifdef TARGET_OS_ARCH_linux_x86
stefank@2314 37 # include "atomic_linux_x86.inline.hpp"
stefank@2314 38 # include "orderAccess_linux_x86.inline.hpp"
stefank@2314 39 # include "prefetch_linux_x86.inline.hpp"
stefank@2314 40 #endif
stefank@2314 41 #ifdef TARGET_OS_ARCH_linux_sparc
stefank@2314 42 # include "atomic_linux_sparc.inline.hpp"
stefank@2314 43 # include "orderAccess_linux_sparc.inline.hpp"
stefank@2314 44 # include "prefetch_linux_sparc.inline.hpp"
stefank@2314 45 #endif
stefank@2314 46 #ifdef TARGET_OS_ARCH_linux_zero
stefank@2314 47 # include "atomic_linux_zero.inline.hpp"
stefank@2314 48 # include "orderAccess_linux_zero.inline.hpp"
stefank@2314 49 # include "prefetch_linux_zero.inline.hpp"
stefank@2314 50 #endif
bobv@2508 51 #ifdef TARGET_OS_ARCH_linux_arm
bobv@2508 52 # include "atomic_linux_arm.inline.hpp"
bobv@2508 53 # include "orderAccess_linux_arm.inline.hpp"
bobv@2508 54 # include "prefetch_linux_arm.inline.hpp"
bobv@2508 55 #endif
bobv@2508 56 #ifdef TARGET_OS_ARCH_linux_ppc
bobv@2508 57 # include "atomic_linux_ppc.inline.hpp"
bobv@2508 58 # include "orderAccess_linux_ppc.inline.hpp"
bobv@2508 59 # include "prefetch_linux_ppc.inline.hpp"
bobv@2508 60 #endif
stefank@2314 61
duke@435 62 // Contains inlined functions for class Thread and ThreadLocalStorage
duke@435 63
duke@435 64 inline void ThreadLocalStorage::pd_invalidate_all() {} // nothing to do
stefank@2314 65
stefank@2314 66 #endif // OS_LINUX_VM_THREAD_LINUX_INLINE_HPP

mercurial