src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleDescription.cpp
changeset 54847 59ea39bb2809
parent 51467 12997ebbc0d8
equal deleted inserted replaced
54846:e4049522b074 54847:59ea39bb2809
     1 /*
     1 /*
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    89   _object(object) {
    89   _object(object) {
    90 }
    90 }
    91 
    91 
    92 void ObjectSampleDescription::ensure_initialized() {
    92 void ObjectSampleDescription::ensure_initialized() {
    93   if (symbol_size == NULL) {
    93   if (symbol_size == NULL) {
    94     symbol_size = SymbolTable::new_permanent_symbol("size", Thread::current());
    94     symbol_size = SymbolTable::new_permanent_symbol("size");
    95   }
    95   }
    96 }
    96 }
    97 
    97 
    98 void ObjectSampleDescription::print_description(outputStream* out) {
    98 void ObjectSampleDescription::print_description(outputStream* out) {
    99   write_object_to_buffer();
    99   write_object_to_buffer();