RFR: 8280422: thread_from_jni_environment can never return NULL [v2]

David Holmes dholmes at openjdk.java.net
Mon Jan 24 02:21:34 UTC 2022


> Analysing the code and its use (see JBS issue for gory details) we can see that `thread_from_jni_environment` can never actually return NULL, so we change it to not appear to do so and thus keep static analysis tools happy.  We also always validate the incoming JNIEnv for debug builds and scrap the unused `VerifyJNIEnvThread` flag.
> 
> Testing: tiers 1-5
> 
> Thanks,
> David

David Holmes has updated the pull request incrementally with one additional commit since the last revision:

  Update copyright

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/7193/files
  - new: https://git.openjdk.java.net/jdk/pull/7193/files/f47198c7..a8501509

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7193&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7193&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7193.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7193/head:pull/7193

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


More information about the hotspot-runtime-dev mailing list