JDK-8298612 : Refactor archiving of java String objects
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2022-12-12
  • Updated: 2022-12-12
Related Reports
Relates :  
Description
The current implementation of StringTable::create_archived_string requires the use of "archived oops" via the HeapShared::archive_object() API:

https://github.com/openjdk/jdk/blob/be69930d9d72fe5b1c2b642943cc7d4347979ca6/src/hotspot/share/classfile/stringTable.cpp#L757-L780

This violates requirement [1] of JDK-8298600 

Also, the string object and the string value array are separately archived, violating requirement [2] of JDK-8298600