Currently VM.initializeFromArchive() has no return value. 
public static native void initializeFromArchive(Class<?> c);
It might be useful to change it to return a boolean:
True: if initialization from the archive is successful
False: Not initialized from the archive (archived values are not mapped in the current process; there is an error during initialization from the archive; etc)
Suggested by Claes.
public static native void initializeFromArchive(Class<?> c);
It might be useful to change it to return a boolean:
True: if initialization from the archive is successful
False: Not initialized from the archive (archived values are not mapped in the current process; there is an error during initialization from the archive; etc)
Suggested by Claes.
- relates to
- 
                    JDK-8202035 Archive the set of ModuleDescriptor and ModuleReference objects for observable system modules with unnamed initial module -           
- Resolved
 
-         
- 
                    JDK-8207263 Store the Configuration for system modules into CDS archive -           
- Resolved
 
-         
- 
                    JDK-8207381 Provide internal Java API for archiving object sub-graph reachable from static field -           
- Closed
 
-