RFR: 8316113: Infinite permission checking loop in java/net/spi/InetAddressResolverProvider/RuntimePermissionTest [v2]

Aleksey Shipilev shade at openjdk.org
Tue Sep 12 12:38:23 UTC 2023


> See the bug for stack traces. This causes a very intermittent test failure: when we call for `LOGGER.info` from our custom security manager, it goes into formatter, which loads locale data, which causes class load, which goes back to this custom security manager, starting the loop again. 
> 
> I think we get lucky most of the time to load the relevant classes outside this path. But sometimes, we don't get as lucky.
> 
> Additional testing:
>  - [x] 500x iterations of [JDK-8315640](https://bugs.openjdk.org/browse/JDK-8315640) reproducer

Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Copyright years update
 - Merge branch 'master' into JDK-8316113-permission-checking-loop
 - Fix

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15681/files
  - new: https://git.openjdk.org/jdk/pull/15681/files/67a320ff..c531bf83

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15681&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15681&range=00-01

  Stats: 7902 lines in 191 files changed: 5173 ins; 1885 del; 844 mod
  Patch: https://git.openjdk.org/jdk/pull/15681.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15681/head:pull/15681

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


More information about the net-dev mailing list