Strange errors when making changes to the configuration

Paul Sandoz paul.sandoz at oracle.com
Wed Jun 6 00:25:04 PDT 2012


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