On Sat, 5 Mar 2022 13:07:56 GMT, Сергей Цыпанов <[email protected]> wrote:
> `Class.getInterfaces(false)` does not clone underlying array and can be used > in cases when the returned array is only read from. This pull request has now been integrated. Changeset: 9073a98d Author: Sergey Tsypanov <[email protected]> Committer: Mandy Chung <[email protected]> URL: https://git.openjdk.java.net/jdk/commit/9073a98d5791dedc5ed4156ec5229164ed1eef50 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod 8282701: Use Class.getInterfaces(false) where possible to reduce allocation pressure Reviewed-by: redestad, mchung ------------- PR: https://git.openjdk.java.net/jdk/pull/7714
