Final blit operation in MTLLayer.blitTexture() is driven by CVDisplayLink in Metal. In this test case we are hitting an invalid condition because of which we exit from MTLLayer.blitTexture(), but we are not stopping the CVDisplayLink. This is causing the CVDisplayLink callback to run in loop. Fix is to stop CVDisplayLink when we return without completing final blit operation in MTLLayer.blitTexture().
Sanity and performance analysis is green. More details in JBS. ------------- Commit messages: - 8267602: [macos] [lanai] java/awt/PrintJob/Text/stringwidth.sh doesn't exit on cancelling print dialog Changes: https://git.openjdk.java.net/jdk17/pull/175/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=175&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8267602 Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod Patch: https://git.openjdk.java.net/jdk17/pull/175.diff Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/175/head:pull/175 PR: https://git.openjdk.java.net/jdk17/pull/175