< prev index next >

src/share/vm/memory/metaspaceTracer.cpp

Print this page
rev 8910 : full patch for jfr

*** 1,7 **** /* ! * Copyright (c) 2014, 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. --- 1,7 ---- /* ! * Copyright (c) 2019, 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.
*** 60,78 **** size_t word_size, MetaspaceObj::Type objtype, Metaspace::MetadataType mdtype) const { E event; if (event.should_commit()) { if (cld->is_anonymous()) { - event.set_classLoader(NULL); event.set_anonymousClassLoader(true); } else { - if (cld->is_the_null_class_loader_data()) { - event.set_classLoader((Klass*) NULL); - } else { - event.set_classLoader(cld->class_loader()->klass()); - } event.set_anonymousClassLoader(false); } event.set_size(word_size * BytesPerWord); event.set_metadataType((u1) mdtype); --- 60,73 ---- size_t word_size, MetaspaceObj::Type objtype, Metaspace::MetadataType mdtype) const { E event; if (event.should_commit()) { + event.set_classLoader(cld); if (cld->is_anonymous()) { event.set_anonymousClassLoader(true); } else { event.set_anonymousClassLoader(false); } event.set_size(word_size * BytesPerWord); event.set_metadataType((u1) mdtype);
< prev index next >