Fwd: large jar file failed
David Holmes
david.holmes at oracle.com
Sun Oct 9 20:22:13 PDT 2011
I've bcc'ed the hotspot lists and redirected this to serviceability as
this is a launcher issue not a JVM issue.
On 9/10/2011 8:30 PM, wynne.wang wrote:
> Hi Experts
>
> I need help to solve a JDK issue.
>
> It is easy to repeat, one created a jar file> 2GB , and it failed to run.
>
> By the deeper investigation, I found the error was thrown from the
> SelectVersion() method in JVM .
What was the error? I suspect it may have been EOVERFLOW as the jar file
was not opened with O_LARGEFILE set.
David Holmes
------------
>
> Inside the openjdk source code(/share/bin/java.c), I found some
> interesting notes as:
>
> * A NOTE TO DEVELOPERS: For performance reasons it is important that
> * the program image remain relatively small until after SelectVersion
> * CreateExecutionEnvironment have finished their possibly recursive
> * processing. Watch everything, but resist all temptations to use Java
> * interfaces.
>
> OK, the fact is , now there is a jar file>2GB , and if it could pass
> the SelectVersion() check in JVM?
> Or any advice ?
>
> Thanks
>
> Wynne
>
>
>
More information about the serviceability-dev
mailing list