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

DRAFT: Adoptopenjdk #32

Closed
wants to merge 3 commits into from
Closed

DRAFT: Adoptopenjdk #32

wants to merge 3 commits into from

Conversation

RobertObkircher
Copy link
Owner

@RobertObkircher RobertObkircher commented May 30, 2021

This contains code from opendjk, I'm not sure if we are allowed to do that.

To try this download https://adoptopenjdk.net/?variant=openjdk16&jvmVariant=hotspot and copy our libjvm.so from the bulild folder into /lib/server. Then /bin/java will use our version instead.

I think implementing all of this is way too much work though.

One problem would be to load classes from the modules. I don't know if we can simply treat jmods as jar files or if we would have to read lib/modules. Java 8 would definitely be simpler in this regard because everything is in rt.jar and we wouldn't have to deal with modules. See also: java/lang/System::initPhase2

I've noticed that many functions were removed from jvm.h in version 11 compared to version 8. The new functions are mostly about modules and StackWalker. Version 16 became a bit more complicated and they split up some files.

@mischnic
Copy link
Collaborator

Can't we link them somehow/add an include path to a clone of the openjdk instead of copying the files?

@RobertObkircher
Copy link
Owner Author

Can't we link them somehow/add an include path to a clone of the openjdk instead of copying the files?

Sure, this was just a draft

@mischnic
Copy link
Collaborator

Also what code that we already have in place would this replace? The classfile parser?

@RobertObkircher
Copy link
Owner Author

Also what code that we already have in place would this replace? The classfile parser?

This would make it possible to use openjdk. We don't have any code for that

@RobertObkircher
Copy link
Owner Author

See #7

@mischnic mischnic deleted the adoptopenjdk branch June 9, 2021 20:21
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