Strange errors when making changes to the configuration
Chris Hegarty
chris.hegarty at oracle.com
Wed Jun 6 00:55:12 PDT 2012
The jigsaw native interface is now reading the configuration directly
http://hg.openjdk.java.net/jigsaw/jigsaw/jdk/file/7b282c826118/src/share/native/common/jigsaw.c
-Chris.
On 06/06/2012 08:25, Paul Sandoz wrote:
> Hi,
>
> I am experimenting with some changes to the serialized configuration related to services (see SimpleLibrary.StoredConfiguration), specifically removing the service supplier data.
>
> However, when i remove the reading/writing of the service supplier data for each context the execution of my compiled and installed sample module either fails with output like the following:
>
> java(17661,0x10ed89000) malloc: *** mmap(size=18446743966130372608) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object
>
> Or just spins at 100% eating up as much heap as possible.
>
> If i modify the reading/writing of the service supplier data to explicitly writeInt(0)/readInt(), the equivalent of 0 service suppliers it works.
>
> I am building Jigsaw on a Mac, i have yet to verify if i can reproduce on another architecture.
>
> It's too early in the VM initialization process to attach a debugger.
>
> Is there something else, perhaps VM specific, that depends on the serialized configuration? I searched but cannot find such a second dependency.
>
> Any tips/hints on how to get more information from the VM?
>
> Paul.
More information about the jigsaw-dev
mailing list