Skip to content

Commit 7d32a1a

Browse files
committedFeb 20, 2024
8326111: JFR: Cleanup for JFR_ONLY
Reviewed-by: egahlin
1 parent a3d7f9f commit 7d32a1a

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed
 

‎src/hotspot/share/classfile/moduleEntry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -481,7 +481,7 @@ void ModuleEntry::init_as_archived_entry() {
481481
if (_location != nullptr) {
482482
_location = ArchiveBuilder::get_buffered_symbol(_location);
483483
}
484-
JFR_ONLY(set_trace_id(0));// re-init at runtime
484+
JFR_ONLY(set_trace_id(0);) // re-init at runtime
485485

486486
ArchivePtrMarker::mark_pointer((address*)&_reads);
487487
ArchivePtrMarker::mark_pointer((address*)&_version);

‎src/hotspot/share/classfile/packageEntry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -252,7 +252,7 @@ void PackageEntry::init_as_archived_entry() {
252252
_module = ModuleEntry::get_archived_entry(_module);
253253
_qualified_exports = (GrowableArray<ModuleEntry*>*)archived_qualified_exports;
254254
_defined_by_cds_in_class_path = 0;
255-
JFR_ONLY(set_trace_id(0)); // re-init at runtime
255+
JFR_ONLY(set_trace_id(0);) // re-init at runtime
256256

257257
ArchivePtrMarker::mark_pointer((address*)&_name);
258258
ArchivePtrMarker::mark_pointer((address*)&_module);

‎src/hotspot/share/gc/g1/g1Trace.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -70,7 +70,7 @@ static void register_jfr_type_constants() {
7070
#endif
7171

7272
void G1NewTracer::initialize() {
73-
JFR_ONLY(register_jfr_type_constants());
73+
JFR_ONLY(register_jfr_type_constants();)
7474
}
7575

7676
void G1NewTracer::report_young_gc_pause(G1GCPauseType pause) {

‎src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024 Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2013, 2022, Red Hat, Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -660,7 +660,7 @@ void ShenandoahHeap::post_initialize() {
660660

661661
_heuristics->initialize();
662662

663-
JFR_ONLY(ShenandoahJFRSupport::register_jfr_type_serializers());
663+
JFR_ONLY(ShenandoahJFRSupport::register_jfr_type_serializers();)
664664
}
665665

666666
size_t ShenandoahHeap::used() const {

‎src/hotspot/share/gc/x/xTracer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -93,7 +93,7 @@ XTracer::XTracer() :
9393
void XTracer::initialize() {
9494
assert(_tracer == nullptr, "Already initialized");
9595
_tracer = new XTracer();
96-
JFR_ONLY(register_jfr_type_serializers());
96+
JFR_ONLY(register_jfr_type_serializers();)
9797
}
9898

9999
void XTracer::send_stat_counter(const XStatCounter& counter, uint64_t increment, uint64_t value) {

‎src/hotspot/share/gc/z/zTracer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -119,7 +119,7 @@ void ZOldTracer::report_end(const Ticks& timestamp) {
119119
}
120120

121121
void ZTracer::initialize() {
122-
JFR_ONLY(register_jfr_type_serializers());
122+
JFR_ONLY(register_jfr_type_serializers();)
123123
}
124124

125125
void ZTracer::send_stat_counter(const ZStatCounter& counter, uint64_t increment, uint64_t value) {

‎src/hotspot/share/runtime/objectMonitor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ bool ObjectMonitor::check_owner(TRAPS) {
14491449
static inline bool is_excluded(const Klass* monitor_klass) {
14501450
assert(monitor_klass != nullptr, "invariant");
14511451
NOT_JFR_RETURN_(false);
1452-
JFR_ONLY(return vmSymbols::jfr_chunk_rotation_monitor() == monitor_klass->name());
1452+
JFR_ONLY(return vmSymbols::jfr_chunk_rotation_monitor() == monitor_klass->name();)
14531453
}
14541454

14551455
static void post_monitor_wait_event(EventJavaMonitorWait* event,

0 commit comments

Comments
 (0)
Please sign in to comment.