Skip to content

Conversation

@bobmcwhirter
Copy link

The WeakPairMap inside Module$ReflectionData was changing,
sometimes, during heap generation of native-image.

Delete the class and no-op the relevant methods that used it.

Might be a sub-optimal solution, but avoids spurious native-image
failures at this point when using JDK11+.

@bobmcwhirter bobmcwhirter force-pushed the module-reflection-noop branch 4 times, most recently from cbfe3ac to 00065b7 Compare May 24, 2019 16:40
@bobmcwhirter
Copy link
Author

Ping?

@bobmcwhirter bobmcwhirter force-pushed the module-reflection-noop branch from 00065b7 to 7b63bec Compare May 28, 2019 14:32
Copy link

@christianwimmer christianwimmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like a good investment for the future to move this file with all substitutions into the project com.oracle.svm.core.jdk11. That way we can gradually add "real" implementations of these methods when necessary.

Also please add a big disclaimer comment in the file stating that all implementations are currently empty stubs that are only designed to get code running that actually does not use the module system.

Other than that, I'm fine with adding these empty stubs.

@bobmcwhirter
Copy link
Author

The Target_java_lang_Module already existed in this location. I just added a few more stubs.

Happy to move it though.

@bobmcwhirter
Copy link
Author

Actually, can't move it due to DynamicHub referencing it.

The WeakPairMap inside Module$ReflectionData was changing,
sometimes, during heap generation of native-image.

Delete the class and no-op the relevant methods that used it.

Might be a sub-optimal solution, but avoids spurious native-image
failures at this point when using JDK11+.
@bobmcwhirter bobmcwhirter force-pushed the module-reflection-noop branch from 105748f to 83863f0 Compare May 28, 2019 18:46
@graalvmbot graalvmbot merged commit 83863f0 into oracle:master May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants