annotate src/hotspot/share/gc/g1/heapRegionTracer.cpp @ 60874:d228a4c909cd

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