comparison src/share/vm/gc_implementation/g1/g1GCPhaseTimes.hpp @ 7633:7df93f7c14a5

8006242: G1: WorkerDataArray<T>::verify() too strict for double calculations Summary: Also reviewed by vitalyd@gmail.com. Reviewed-by: johnc, mgerdin
author brutisso
date Wed, 16 Jan 2013 12:46:27 +0100
parents bb3f6194fedb
children 194f52aa2f23
comparison
equal deleted inserted replaced
7619:46e60405583b 7633:7df93f7c14a5
32 class WorkerDataArray : public CHeapObj<mtGC> { 32 class WorkerDataArray : public CHeapObj<mtGC> {
33 T* _data; 33 T* _data;
34 uint _length; 34 uint _length;
35 const char* _print_format; 35 const char* _print_format;
36 bool _print_sum; 36 bool _print_sum;
37
38 NOT_PRODUCT(static const T _uninitialized;)
37 39
38 // 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.
39 // 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 intetened to allow single
40 // 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
41 // without having to worry about the cost. 43 // without having to worry about the cost.