equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/shared/ageTableTracer.hpp" |
26 #include "gc/shared/ageTableTracer.hpp" |
27 #include "gc/shared/gcId.hpp" |
27 #include "gc/shared/gcId.hpp" |
28 #include "trace/tracing.hpp" |
28 #include "jfr/jfrEvents.hpp" |
29 |
29 |
30 void AgeTableTracer::send_tenuring_distribution_event(uint age, size_t size) { |
30 void AgeTableTracer::send_tenuring_distribution_event(uint age, size_t size) { |
31 EventTenuringDistribution e; |
31 EventTenuringDistribution e; |
32 if (e.should_commit()) { |
32 if (e.should_commit()) { |
33 e.set_gcId(GCId::current()); |
33 e.set_gcId(GCId::current()); |