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

Bernd Eckenfels ecki at zusammenkunft.net
Sat Mar 5 16:21:26 UTC 2022


Should probably explain why it removes the private modifier?

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: core-libs-dev <core-libs-dev-retn at openjdk.java.net> im Auftrag von Сергей Цыпанов <duke at openjdk.java.net>
Gesendet: Saturday, March 5, 2022 2:14:20 PM
An: core-libs-dev at openjdk.java.net <core-libs-dev at openjdk.java.net>
Betreff: RFR: 8282701: Use Class.getInterfaces(false) where possible to reduce allocation pressure

`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