annotate src/hotspot/share/gc/g1/heapRegionTracer.cpp @ 49273:216c2aabbf1f

8196602: Change HeapRegionClosure to comply to naming conventions Reviewed-by: kbarrett, sjohanss
author tschatzl
date Fri, 09 Feb 2018 11:51:40 +0100
parents 1ec65b303bb7
children 565336327354
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"
david@36098 27 #include "trace/tracing.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,
david@36098 33 size_t used,
david@36098 34 uint allocationContext) {
david@36098 35 EventG1HeapRegionTypeChange e;
david@36098 36 if (e.should_commit()) {
david@36098 37 e.set_index(index);
david@36098 38 e.set_from(from);
david@36098 39 e.set_to(to);
david@36098 40 e.set_start(start);
david@36098 41 e.set_used(used);
egahlin@40664 42 e.set_allocationContext(allocationContext);
david@36098 43 e.commit();
david@36098 44 }
david@36098 45 }