JDK-8141650 : SharedMiscDataSize min range value not big enough
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-11-06
  • Updated: 2024-11-06
  • Resolved: 2016-03-21
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 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
# jdk_java -XX:+PrintFlagsRanges -version | grep SharedMiscDataSize
   size_t SharedMiscDataSize                                 [ 27200                     ...                2113802239 ]                     {product}

but that min size is not large enough:

# jdk_java -Xshare:dump -XX:SharedMiscDataSize=27200
Allocated shared space: 33705984 bytes at 0x0000000800000000
Loading classes to share ...
...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 2175
    instance classes   =  2161
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
Java HotSpot(TM) 64-Bit Server VM warning: 
The shared miscellaneous data space is not large enough
to preload requested classes. Use -XX:SharedMiscDataSize=<size>
to increase the initial size of shared miscellaneous data space.

Comments
Will be fixed by JDK-8145221
21-03-2016

The hotspot/test/runtime/SharedArchiveFile/LimitSharedSizes.java may need to be tweaked (simplified) after this fix.
06-11-2015