comparison src/share/vm/gc_implementation/g1/g1GCPhaseTimes.hpp @ 10405:f2110083203d

8005849: JEP 167: Event-Based JVM Tracing Reviewed-by: acorn, coleenp, sla Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author sla
date Mon, 10 Jun 2013 11:30:51 +0200
parents 194f52aa2f23
children 5888334c9c24
comparison
equal deleted inserted replaced
10404:d0add7016434 10405:f2110083203d
36 bool _print_sum; 36 bool _print_sum;
37 37
38 NOT_PRODUCT(static const T _uninitialized;) 38 NOT_PRODUCT(static const T _uninitialized;)
39 39
40 // We are caching the sum and average to only have to calculate them once. 40 // We are caching the sum and average to only have to calculate them once.
41 // This is not done in an MT-safe way. It is intetened to allow single 41 // This is not done in an MT-safe way. It is intended to allow single
42 // threaded code to call sum() and average() multiple times in any order 42 // threaded code to call sum() and average() multiple times in any order
43 // without having to worry about the cost. 43 // without having to worry about the cost.
44 bool _has_new_data; 44 bool _has_new_data;
45 T _sum; 45 T _sum;
46 double _average; 46 double _average;