This PR proposes to fix a bug when dealing with overflows in one of the 
`AMSI::copy` overloads.

The PR further proposes to relieve the inlining pressure by consolidating 
exception suppliers into separate static methods.

Additionally, a reproducing test is proposed.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Fix bug and reduce inlining costs
 - Address overflow case

Changes: https://git.openjdk.org/jdk/pull/32790/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32790&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8389627
  Stats: 72 lines in 3 files changed: 50 ins; 10 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/32790.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32790/head:pull/32790

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

Reply via email to