--- a/src/hotspot/share/jfr/recorder/storage/jfrStorageUtils.hpp Sun Sep 22 14:18:39 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/storage/jfrStorageUtils.hpp Sun Sep 22 14:35:38 2019 +0200
@@ -97,8 +97,8 @@
template <typename T, bool negation>
class Retired {
public:
- typedef typename T Type;
- bool process(T* t) {
+ typedef T Type;
+ bool process(Type* t) {
assert(t != NULL, "invariant");
return negation ? !t->retired() : t->retired();
}
@@ -107,8 +107,8 @@
template <typename T, bool negation>
class Excluded {
public:
- typedef typename T Type;
- bool process(T* t) {
+ typedef T Type;
+ bool process(Type* t) {
assert(t != NULL, "invariant");
return negation ? !t->excluded() : t->excluded();
}
@@ -133,7 +133,7 @@
public:
PredicatedMutexedWriteOp(Operation& operation, Predicate& predicate) :
MutexedWriteOp(operation), _predicate(predicate) {}
- bool process(Type* t) {
+ bool process(typename Operation::Type* t) {
return _predicate.process(t) ? MutexedWriteOp<Operation>::process(t) : true;
}
};
@@ -157,7 +157,7 @@
public:
PredicatedConcurrentWriteOp(Operation& operation, Predicate& predicate) :
ConcurrentWriteOp(operation), _predicate(predicate) {}
- bool process(Type* t) {
+ bool process(typename Operation::Type* t) {
return _predicate.process(t) ? ConcurrentWriteOp<Operation>::process(t) : true;
}
};