On Thu, 13 Nov 2025 09:31:53 GMT, Martin Doerr <[email protected]> wrote:

> ... make run-test 
> TEST=runtime/cds/appcds/aotClassLinking/LambdaInExcludedClass.java 
> JTREG="VM_OPTIONS=-XX:+UseCompactObjectHeaders"

I suspect the crash is caused by a preexisting issue that is exposed by this 
patch.

In `vmClasses::resolve_all`:

#if INCLUDE_CDS
  if (CDSConfig::is_using_aot_linked_classes()) {
    AOTLinkedClassBulkLoader::preload_classes(THREAD);
  }
#endif

  // Preload commonly used klasses
  vmClassID scan = vmClassID::FIRST;
  // first do Object, then String, Class
  resolve_through(VM_CLASS_ID(Object_klass), scan, CHECK);
  CollectedHeap::set_filler_object_klass(vmClasses::Object_klass());


The filler-klass is not initialized when `preload_classes` is invoked, but 
`preload_classes` use heap-allocation, which may require filler-obj.

@iklam What do you think?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28240#issuecomment-3527395697

Reply via email to