mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-01 14:08:24 +00:00
8220294: ZGC fails to build on GCC 4.4.7: Type parameter issue
Specify explicit type in the constructor Reviewed-by: shade, pliden
This commit is contained in:
parent
f9d6d1d8f2
commit
46c4ef516c
@ -404,7 +404,7 @@ T* ZStatIterableValue<T>::insert() const {
|
||||
// Stat sampler
|
||||
//
|
||||
ZStatSampler::ZStatSampler(const char* group, const char* name, ZStatUnitPrinter printer) :
|
||||
ZStatIterableValue(group, name, sizeof(ZStatSamplerData)),
|
||||
ZStatIterableValue<ZStatSampler>(group, name, sizeof(ZStatSamplerData)),
|
||||
_printer(printer) {}
|
||||
|
||||
ZStatSamplerData* ZStatSampler::get() const {
|
||||
@ -440,7 +440,7 @@ ZStatUnitPrinter ZStatSampler::printer() const {
|
||||
// Stat counter
|
||||
//
|
||||
ZStatCounter::ZStatCounter(const char* group, const char* name, ZStatUnitPrinter printer) :
|
||||
ZStatIterableValue(group, name, sizeof(ZStatCounterData)),
|
||||
ZStatIterableValue<ZStatCounter>(group, name, sizeof(ZStatCounterData)),
|
||||
_sampler(group, name, printer) {}
|
||||
|
||||
ZStatCounterData* ZStatCounter::get() const {
|
||||
@ -463,7 +463,7 @@ void ZStatCounter::sample_and_reset() const {
|
||||
// Stat unsampled counter
|
||||
//
|
||||
ZStatUnsampledCounter::ZStatUnsampledCounter(const char* name) :
|
||||
ZStatIterableValue("Unsampled", name, sizeof(ZStatCounterData)) {}
|
||||
ZStatIterableValue<ZStatUnsampledCounter>("Unsampled", name, sizeof(ZStatCounterData)) {}
|
||||
|
||||
ZStatCounterData* ZStatUnsampledCounter::get() const {
|
||||
return get_cpu_local<ZStatCounterData>(ZCPU::id());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user