RFR: 8371643: Remove ThreadLocalAllocBuffer::_reserve_for_allocation_prefetch [v2]
Albert Mingkun Yang
ayang at openjdk.org
Thu Nov 13 11:38:20 UTC 2025
On Thu, 13 Nov 2025 09:31:53 GMT, Martin Doerr <mdoerr at openjdk.org> 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
More information about the hotspot-gc-dev
mailing list