--- old/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.cpp 2020-03-26 15:58:53.000000000 -0700 +++ new/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.cpp 2020-03-26 15:58:52.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -140,7 +140,7 @@ void JfrTraceId::assign(const ClassLoaderData* cld) { assert(cld != NULL, "invariant"); - if (cld->is_unsafe_anonymous()) { + if (cld->has_class_mirror_holder()) { cld->set_trace_id(0); return; }