United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6924920 Class Data Sharing limit on the java version string can create failures: JVM Ident field too long
JDK-6924920 : Class Data Sharing limit on the java version string can create failures: JVM Ident field too long

Details
Type:
Bug
Submit Date:
2010-02-10
Status:
Resolved
Updated Date:
2013-04-30
Project Name:
JDK
Resolved Date:
2012-11-28
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs25 (b11)

Related Reports
Backport:

Sub Tasks

Description
If the java -client -Xinternalversion string exceeds 256, running java -client -Xshare:dump will fail:


>>>> VM option 'SharedReadOnlySize=10M'
>>>> Rewriting and unlinking classes ... done.
>>>> Calculating hash values for String objects .. done.
>>>> Calculating fingerprints ... done.
>>>> Removing unshareable information ... done.
>>>> Moving pre-ordered read-only objects to shared space at 0x3c010000 ... done.
>>>> Moving read-only objects to shared space at 0x3c5285e0 ... done.
>>>> Moving common symbols to shared space at 0x3c52a638 ... done.
>>>> Moving remaining symbols to shared space at 0x3c5e3248 ... done.
>>>> Moving string char arrays to shared space at 0x3c5e44a8 ... done.
>>>> Moving additional symbols to shared space at 0x3c666118 ... done.
>>>> Read-only space ends at 0x3c6f9ef0, 7249648 bytes.
>>>> Moving pre-ordered read-write objects to shared space at 0x3ca10000 ... done.
>>>> Moving read-write objects to shared space at 0x3d039110 ... done.
>>>> Moving String objects to shared space at 0x3d0711e0 ... done.
>>>> Read-write space ends at 0x3d0ae668, 6940264 bytes.
>>>> Updating references to shared objects ... done.
>>>>
>>>> Error occurred during initialization of VM
>>>> Unable to use shared archive.
>>>> ",stderr="An error has occurred while processing the shared archivefile.
>>>> JVM Ident field for shared archive is too long - truncated to
>>>> <????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??!
>>>> ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????j>


I would like to see this 256 limit removed, increased, or truncate the version string silently. But please don't fail like this.

                                    

Comments
URL:   http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/fe81517cfb77
User:  coleenp
Date:  2012-11-28 18:51:05 +0000

                                     
2012-11-28
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/fe81517cfb77
User:  amurillo
Date:  2012-12-01 02:59:09 +0000

                                     
2012-12-01



Hardware and Software, Engineered to Work Together