-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8264047: Duplicate global variable 'jvm' in libjavajpeg and libawt #3155
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
Conversation
|
👋 Welcome back sgehwolf! A progress list of the required criteria for merging this PR into |
|
Anyone? |
I guess I don't understand why this is the right solution. |
Thanks for the feedback. I'm open to other approaches. I'm by no means an expert in this area, so you probably know better what the best solution would be.
I don't know if that'll help the static linking case, I'll give it a try.
I don't think it is.
Apparently so. At least no other conflicts were noticed when the following client libraries are in the mix: |
|
The list of libraries doesn't seem to include xawt. Although I'd be astonished if it defined one since it links with awt. |
Yes. This is in context of Graal VM's native images. AFAIK there is no full xawt support yet. This is about the conflict of libawt and libjavajpeg. There are probably more.
Yes. This is on Linux x86_64 and with an OpenJDK built with GCC 10+. With gcc 10+ So the |
|
Probably it will be easy to remove this "jvm" variable in the jpeg library? Looks like it is used to call JNU_GetEnv, but the JNIEnv could be accessed from the first parameter of the jni method. |
Seems these methods are used as callbacks... |
|
So what's the verdict with this one? OK to rename the variable or go a different route? |
|
@jerboaa This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 161 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@mrserb Thanks for the review! |
|
/integrate |
|
@jerboaa Since your change was applied there have been 220 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit eb6330e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The suggestion is to rename 'jvm' variable in
libjavajpegtothe_jvmso this conflict no longer occurs whenlibjavajpeg.aandlibawt.aare being linked into one native image.Testing: test/jdk/javax/imageio jtreg tests. GHA pre-integration tests running too.
Thoughts?
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3155/head:pull/3155$ git checkout pull/3155Update a local copy of the PR:
$ git checkout pull/3155$ git pull https://git.openjdk.java.net/jdk pull/3155/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3155View PR using the GUI difftool:
$ git pr show -t 3155Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3155.diff