Skip to content

Conversation

@llewelld
Copy link

This is a proof-of-concept, not working code to be merged.

Reworks the compile script to build the java source on a local GraalVM inside an sfdk target, rather than on a remote device.

The changes add restrictions to the amount of heap the JVM can allocate. This is necessary to appease the QEMU version used by the sfdk build engine.

The memory restrictions unfortunately prevent the build from going through, so this is a proof-of-concept rather than a working solution.

Reworks the compile script to build the java source on a local GraalVM
inside an sfdk target, rather than on a remote device.

The changes add restrictions to the amount of heap the JVM can allocate.
This is necessary to appease the QEMU version used by the sfdk build
engine.

The memory restrictions unfortunately prevent the build from going
through, so this is a proof-of-concept rather than a working solution.
@llewelld llewelld marked this pull request as draft August 24, 2022 17:34
@thigg
Copy link
Owner

thigg commented Sep 29, 2022

if you do not set memory explicitly, this happens:

Error occurred during initialization of VM
Could not reserve enough space for 4036608KB object heap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants