[OpenJDK 2D-Dev] RFR: 8264047: Duplicate global variable 'jvm' in libjavajpeg and libawt

Severin Gehwolf sgehwolf at openjdk.java.net
Mon Mar 29 13:53:25 UTC 2021


On Sat, 27 Mar 2021 01:09:40 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> 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.
>
>> 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?

-------------

PR: https://git.openjdk.java.net/jdk/pull/3155


More information about the 2d-dev mailing list