Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve module support for native-image building #3935

Closed
olpaw opened this issue Oct 21, 2021 · 1 comment
Closed

Improve module support for native-image building #3935

olpaw opened this issue Oct 21, 2021 · 1 comment
Assignees
Milestone

Comments

@olpaw
Copy link
Member

olpaw commented Oct 21, 2021

#1962 was implemented for 21.3. Basic support for building images from modules is available. But more work is needed.

  • While all of the images coming from the substratevm suite (native-image-launcher, native-image-agent-library, ...) are already built on module-path our other GraalVM images from other suites are still built in the classpath. This needs to be fixed.
  • Currently the image builder only runs on the module-path if an image should be built from the module-path. This needs to changes so that the image-builder always runs on the module-path.
  • Module-info at image runtime is generated at image-buildtime. This is still incomplete. Hosted module access setup needs to be translated to runtime module-info access state so that module-related checks pass at image runtime as expected. One instance of this problem is explained in detail in [GR-34444] Ensure java.lang.Module#isReflectivelyExportedOrOpen works as expected #3911
  • Currently StackTraceElement.getModuleName() does not return module names. (see Show module name in stacktrace #4008)
@munishchouhan
Copy link
Contributor

@olpaw There is a request to add module name in stack traces of native image, please add that in this effort also
#4008

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

No branches or pull requests

3 participants