Cuts shaping context to the actually needed by HarfBuzz to reduce unnecessary copying. See provided benchmark that grows faster than linear without the fix and shows linear growth with this change.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8396893: provide minimal required context for HarfBuzz shaping to reduce redundant memory copying Changes: https://git.openjdk.org/jdk/pull/33853/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33853&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8396893 Stats: 223 lines in 3 files changed: 217 ins; 0 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/33853.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33853/head:pull/33853 PR: https://git.openjdk.org/jdk/pull/33853
