ARM and thread interruption
Carlos Costa e Silva
carlos at keysoft.pt
Mon Jun 28 18:44:08 PDT 2010
-----Original Message-----
From: Mike Clark [mailto:mclark at apache.org]
Sent: terça-feira, 29 de Junho de 2010 00:47
To: coin-dev at openjdk.java.net
Subject: ARM and thread interruption
I am little concerned about ARM suppressing
java.lang.InterruptedException ...
--------------------------
Hmm, and how is that different from what happens now?
try {
// wait until interrupted
}
finally {
throw RuntimeException("Oops, InterruptedException thrown away");
}
Suppressed exceptions represent a bug in the program (an uncaught
exception happened in the finally block) and imho 99% of the time are
only useful for debugging/logging (the same as happens to exception
causes).
In fact adding behavior (this restoring the interrupt flag) to ARM
suppression handling is counter-intuitive making ARM blocks behave very
different from traditional try/finally blocks where no such handling is
done.
Or am I missing something here (quite possible :) ?
Carlos
More information about the coin-dev
mailing list