RFR: 8282701: Use Class.getInterfaces(false) where possible to reduce allocation pressure

Сергей Цыпанов duke at openjdk.java.net
Sat Mar 5 13:14:20 UTC 2022


`Class.getInterfaces(false)` does not clone underlying array and can be used in cases when the returned array is only read from.

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

Commit messages:
 - 8282701: Use Class.getInterfaces(false) where possible to reduce allocation pressure

Changes: https://git.openjdk.java.net/jdk/pull/7714/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7714&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282701
  Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7714.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7714/head:pull/7714

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


More information about the core-libs-dev mailing list