JDK-8264735 : Make dynamic dump repeatable
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-04-05
  • Updated: 2022-01-06
  • Resolved: 2021-07-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b06Fixed
Related Reports
Blocks :  
Duplicate :  
Relates :  
Description
The dumping dynamic shared archive currently can only be executed once, it will fail second time if we call DynamicArchive::dump().

Stack: [0x00007f28636f8000,0x00007f28637f8000],  sp=0x00007f28637f67a8,  free space=1017k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x6704ec]  MetaspaceClosure::ArrayRef<char>::size() const+0xc
V  [libjvm.so+0xb34952]  MetaspaceClosure::do_push(MetaspaceClosure::Ref*)+0x52
V  [libjvm.so+0xb349d5]  MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x45
V  [libjvm.so+0x6693c8]  SharedPathTable::metaspace_pointers_do(MetaspaceClosure*)+0x118
V  [libjvm.so+0x64a67a]  DynamicArchiveBuilder::iterate_roots(MetaspaceClosure*, bool)+0x1a
V  [libjvm.so+0x38d19c]  ArchiveBuilder::gather_klasses_and_symbols()+0x1dc
V  [libjvm.so+0x38d495]  ArchiveBuilder::gather_source_objs()+0x75
V  [libjvm.so+0x64aa85]  VM_PopulateDynamicDumpSharedSpace::doit()+0x1c5
V  [libjvm.so+0xdd67aa]  VM_Operation::evaluate()+0xea
V  [libjvm.so+0xdd8088]  VMThread::evaluate_operation(VM_Operation*)+0xb8
V  [libjvm.so+0xdd8558]  VMThread::inner_execute(VM_Operation*)+0x1c8
V  [libjvm.so+0xdd881f]  VMThread::run()+0xbf
V  [libjvm.so+0xd5ae8e]  Thread::call_run()+0xde
V  [libjvm.so+0xbb6a17]  thread_native_entry(Thread*)+0xe7
Comments
Changeset: f741e4ca Author: Yumin Qi <minqi@openjdk.org> Date: 2021-07-07 19:41:45 +0000 URL: https://git.openjdk.java.net/jdk/commit/f741e4ca7499193d1d0d07fb27d11cbc0a6de6c1
07-07-2021