RFR: 8366149: JNI exception pending in Java_sun_awt_X11GraphicsDevice_pGetBounds of awt_GraphicsEnv.c:1484
Damon Nguyen
dnguyen at openjdk.org
Fri Sep 5 01:50:44 UTC 2025
In the scenario where AWT's UNLOCK API encounters a pendingException, the env pointer throws the pendingException (as seen in `awt.h`). However, in `Java_sun_awt_X11GraphicsDevice_pGetBounds`, after `AWT_UNLOCK`, the bounds var is set. The exception check does not occur until after the bounds is set, so the bounds may be set to an undesired value. This fix adds another exception check to look for this pendingException after `AWT_UNLOCK`.
-------------
Commit messages:
- Initial commit
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- Merge branch 'master' of github.com:DamonGuy/jdk
- ... and 2 more: https://git.openjdk.org/jdk/compare/b69a3849...f5e1521b
Changes: https://git.openjdk.org/jdk/pull/27110/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27110&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8366149
Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/27110.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27110/head:pull/27110
PR: https://git.openjdk.org/jdk/pull/27110
More information about the client-libs-dev
mailing list