RFR: 8365885: Clean up constant pool reflection native code

Chen Liang liach at openjdk.org
Wed Aug 20 22:22:15 UTC 2025


When I was trying to reuse this constant pool reflection for assembly phase indy argument validation, I noted the JNI code has a lot of confusing arguments. In particular, the JVM_ConstantPoolGetSize is wrong because of argument confusion. We should remove the unused arguments to reduce confusion.

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

Commit messages:
 - 8365885: Clean up constant pool reflection native code

Changes: https://git.openjdk.org/jdk/pull/26870/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26870&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365885
  Stats: 142 lines in 6 files changed: 18 ins; 3 del; 121 mod
  Patch: https://git.openjdk.org/jdk/pull/26870.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26870/head:pull/26870

PR: https://git.openjdk.org/jdk/pull/26870


More information about the core-libs-dev mailing list