On Fri, 6 Nov 2026 08:33:22 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>> Phil Race has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   8393035
>
> test/jdk/java/awt/FontMetrics/MultiThreadFontMetrics.java line 105:
> 
>> 103: 
>> 104:     public void run() {
>> 105:         Graphics2D graphics = image.createGraphics();
> 
> main thread joins its worker/child threads but never captures their uncaught 
> exceptions. If createGraphics() or getFontMetrics() fails or throws 
> exception, the worker terminates, but join() will succeed,
> and the child JVM can still exit with status zero as the parent checks only 
> that exit status,
> so shouldn't we capture worker failures and rethrow them on the main thread?

The failure mode is a crash .. not an exception. So there's no need for any of 
that.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33481#discussion_r4498151949

Reply via email to