--- old/src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleDescription.cpp 2020-03-26 15:58:35.000000000 -0700 +++ new/src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleDescription.cpp 2020-03-26 15:58:34.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 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 @@ -162,10 +162,9 @@ if (k->is_instance_klass()) { const InstanceKlass* ik = InstanceKlass::cast(k); - if (ik->is_unsafe_anonymous()) { + if (ik->is_unsafe_anonymous() || ik->is_hidden()) { return; } - assert(!ik->is_unsafe_anonymous(), "invariant"); const Symbol* name = ik->name(); if (name != NULL) { write_text("Class Name: ");