--- a/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp Mon Oct 28 18:43:54 2019 +0100
+++ b/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp Mon Oct 28 21:17:47 2019 +0100
@@ -754,9 +754,15 @@
}
};
+template <typename T>
+class EmptyStub {
+ public:
+ bool operator()(T const& value) { return true; }
+};
+
typedef SerializePredicate<MethodPtr> MethodPredicate;
typedef JfrPredicatedTypeWriterImplHost<MethodPtr, MethodPredicate, write__method> MethodWriterImplTarget;
-typedef Wrapper<KlassPtr, Stub> KlassCallbackStub;
+typedef Wrapper<KlassPtr, EmptyStub> KlassCallbackStub;
typedef JfrTypeWriterHost<MethodWriterImplTarget, TYPE_METHOD> MethodWriterImpl;
typedef MethodIteratorHost<MethodWriterImpl, KlassCallbackStub, BitMapFilter, false> MethodWriter;
--- a/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSetUtils.hpp Mon Oct 28 18:43:54 2019 +0100
+++ b/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSetUtils.hpp Mon Oct 28 21:17:47 2019 +0100
@@ -99,12 +99,6 @@
};
template <typename T>
-class Stub {
- public:
- bool operator()(T const& value) { return true; }
-};
-
-template <typename T>
class SerializePredicate {
bool _class_unload;
public: