Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8321698

JFR asserts in write_classloader: failed invariant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • 23
    • 17.0.11-oracle, 22, 23
    • hotspot
    • jfr

    Backports

      Description

        The following test failed in the JDK22 CI:

        vmTestbase/nsk/monitoring/MemoryPoolMBean/resetPeakUsage/reset004/TestDescription.java

        assert(_class_unload ? true : ((((JfrTraceIdBits::load(class_loader_klass)) & ((1 << 4) << 8)) != 0))) failed: invariant


        Stack: [0x00007fc4ccd94000,0x00007fc4cce94000], sp=0x00007fc4cce927d0, free space=1017k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xf858ef] write_classloader(JfrCheckpointWriter*, ClassLoaderData const*, bool)+0x10f (jfrTypeSet.cpp:704)
        V [libjvm.so+0xf8b7ea] void JfrArtifactSet::iterate_klasses<CompositeFunctor<Klass const*, KlassToFieldEnvelope<KlassCldFieldSelector, JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<ClassLoaderData const*, SerializePredicate<ClassLoaderData const*>, &(write__classloader(JfrCheckpointWriter*, void const*))>, 183u> >, KlassToFieldEnvelope<ModuleCldFieldSelector, JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<ClassLoaderData const*, SerializePredicate<ClassLoaderData const*>, &(write__classloader(JfrCheckpointWriter*, void const*))>, 183u> > > >(CompositeFunctor<Klass const*, KlassToFieldEnvelope<KlassCldFieldSelector, JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<ClassLoaderData const*, SerializePredicate<ClassLoaderData const*>, &(write__classloader(JfrCheckpointWriter*, void const*))>, 183u> >, KlassToFieldEnvelope<ModuleCldFieldSelector, JfrTypeWriterHost<JfrPredicatedTypeWriterImplHost<ClassLoaderData const*, SerializePredicate<ClassLoaderData const*>, &(write__classloader(JfrCheckpointWriter*, void const*))>, 183u> > >&) const+0xca (jfrTypeWriterHost.hpp:87)
        V [libjvm.so+0xf891a3] JfrTypeSet::serialize(JfrCheckpointWriter*, JfrCheckpointWriter*, bool, bool)+0xc83 (jfrTypeSet.cpp:793)
        V [libjvm.so+0xec7a4d] flush_type_set(Thread*)+0x8d (jfrCheckpointManager.cpp:640)
        V [libjvm.so+0xeccd89] JfrCheckpointManager::flush_type_set()+0x119 (jfrCheckpointManager.cpp:650)
        V [libjvm.so+0xf4764c] JfrRecorderService::flush()+0x10c (jfrRecorderService.cpp:158)
        V [libjvm.so+0xf47fca] JfrRecorderService::invoke_flush()+0xba (jfrRecorderService.cpp:158)
        V [libjvm.so+0xf48f9a] JfrRecorderService::flushpoint()+0x10a (jfrRecorderService.cpp:678)
        V [libjvm.so+0xf49cc8] recorderthread_entry(JavaThread*, JavaThread*)+0x178 (jfrRecorderThreadLoop.cpp:83)
        V [libjvm.so+0xeb7fcc] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:720)
        V [libjvm.so+0x179cbb6] Thread::call_run()+0xb6 (thread.cpp:220)
        V [libjvm.so+0x14a6f47] thread_native_entry(Thread*)+0x127 (os_linux.cpp:789)

        Attachments

          Issue Links

            Activity

              People

                mgronlun Markus Grönlund
                dholmes David Holmes
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: