src/hotspot/share/opto/runtime.hpp
changeset 51333 f6641fcf7b7e
parent 50860 480a96a43b62
child 53244 9807daeb47c4
equal deleted inserted replaced
51332:c25572739e7c 51333:f6641fcf7b7e
    75 
    75 
    76  public:
    76  public:
    77   NamedCounter(const char *n, CounterTag tag = NoTag):
    77   NamedCounter(const char *n, CounterTag tag = NoTag):
    78     _name(n == NULL ? NULL : os::strdup(n)),
    78     _name(n == NULL ? NULL : os::strdup(n)),
    79     _count(0),
    79     _count(0),
    80     _next(NULL),
    80     _tag(tag),
    81     _tag(tag) {}
    81     _next(NULL) {}
    82 
    82 
    83   ~NamedCounter() {
    83   ~NamedCounter() {
    84     if (_name != NULL) {
    84     if (_name != NULL) {
    85       os::free((void*)_name);
    85       os::free((void*)_name);
    86     }
    86     }