/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. *
*/
template <typename Derived, typename Version = traceid> class JfrLinkedNode { public: typedef Version VersionType;
Derived* _next;
JfrLinkedNode() : _next(NULL) {}
JfrLinkedNode(JfrLinkedNode<Derived, VersionType>* next) : _next(next) {}
};
template <typename V> class JfrKeyIsThisNode : public JfrLinkedNode<JfrKeyIsThisNode<V> > { private:
V _value; public: typedef V Value; typedefconst JfrKeyIsThisNode<V>* Key;
JfrKeyIsThisNode(const Value value = NULL) : JfrLinkedNode<JfrKeyIsThisNode<V> >(), _value(value) {}
Key key() const { returnthis; }
Value value() const { return _value; } void set_value(Value value) { _value = value; }
};
template <typename V> class JfrValueNode : public JfrLinkedNode<JfrValueNode<V> >, public CHeapObj<mtTracing> { private:
V _value; public: typedef V Value; typedef Value Key;
JfrValueNode(const Value value = NULL) : JfrLinkedNode<JfrValueNode<V> >(), _value(value) {}
Key key() const { return value(); }
Value value() const { return _value; } void set_value(Value value) { _value = value; }
};
template <typename V> class JfrKeyIsFreeSizeNode : public JfrLinkedNode<JfrKeyIsFreeSizeNode<V> > { private:
V _value; public: typedef V Value; typedef size_t Key;
JfrKeyIsFreeSizeNode(const Value value = NULL) : JfrLinkedNode<JfrKeyIsFreeSizeNode<V> >(), _value(value) {}
Key key() const { return value()->free_size(); }
Value value() const { return _value; } void set_value(Value value) { _value = value; }
};
#endif// SHARE_JFR_UTILITIES_JFRNODE_HPP
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.14Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.