src/share/vm/gc_implementation/g1/heapRegionTracer.cpp

Sat, 07 Nov 2020 10:30:02 +0800

author
aoqi
date
Sat, 07 Nov 2020 10:30:02 +0800
changeset 10026
8c95980d0b66
parent 9861
a248d0be1309
permissions
-rw-r--r--

Added tag mips-jdk8u275-b01 for changeset d3b4d62f391f

neugens@9861 1 /*
neugens@9861 2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
neugens@9861 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
neugens@9861 4 *
neugens@9861 5 * This code is free software; you can redistribute it and/or modify it
neugens@9861 6 * under the terms of the GNU General Public License version 2 only, as
neugens@9861 7 * published by the Free Software Foundation.
neugens@9861 8 *
neugens@9861 9 * This code is distributed in the hope that it will be useful, but WITHOUT
neugens@9861 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
neugens@9861 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
neugens@9861 12 * version 2 for more details (a copy is included in the LICENSE file that
neugens@9861 13 * accompanied this code).
neugens@9861 14 *
neugens@9861 15 * You should have received a copy of the GNU General Public License version
neugens@9861 16 * 2 along with this work; if not, write to the Free Software Foundation,
neugens@9861 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
neugens@9861 18 *
neugens@9861 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
neugens@9861 20 * or visit www.oracle.com if you need additional information or have any
neugens@9861 21 * questions.
neugens@9861 22 *
neugens@9861 23 */
neugens@9861 24
neugens@9861 25 #include "precompiled.hpp"
neugens@9861 26 #include "gc_implementation/g1/heapRegionTracer.hpp"
neugens@9861 27 #include "jfr/jfrEvents.hpp"
neugens@9861 28
neugens@9861 29 void HeapRegionTracer::send_region_type_change(uint index,
neugens@9861 30 G1HeapRegionTraceType::Type from,
neugens@9861 31 G1HeapRegionTraceType::Type to,
neugens@9861 32 uintptr_t start,
neugens@9861 33 size_t used) {
neugens@9861 34 EventG1HeapRegionTypeChange e;
neugens@9861 35 if (e.should_commit()) {
neugens@9861 36 e.set_index(index);
neugens@9861 37 e.set_from(from);
neugens@9861 38 e.set_to(to);
neugens@9861 39 e.set_start(start);
neugens@9861 40 e.set_used(used);
neugens@9861 41 e.commit();
neugens@9861 42 }
neugens@9861 43 }

mercurial