Mercurial > hg > graal-compiler
changeset 14981:b5fed092083f
Socket interrupts should not be treated as errors in GraphPrinterDumpHandler.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 03 Apr 2014 18:32:39 +0200 |
parents | a6bd51a7c14c |
children | 1422f0bd55e3 |
files | graal/com.oracle.graal.printer/src/com/oracle/graal/printer/GraphPrinterDumpHandler.java |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/GraphPrinterDumpHandler.java Thu Apr 03 15:03:45 2014 +0200 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/GraphPrinterDumpHandler.java Thu Apr 03 18:32:39 2014 +0200 @@ -136,6 +136,13 @@ printer = xmlPrinter; } TTY.println("Connected to the IGV on %s:%d", host, port); + } catch (ClosedByInterruptException | InterruptedIOException e) { + /* + * Interrupts should not count as errors because they may be caused by a cancelled Graal + * compilation. ClosedByInterruptException occurs if the SocketChannel could not be + * opened. InterruptedIOException occurs if new Socket(..) was interrupted. + */ + printer = null; } catch (IOException e) { TTY.println("Could not connect to the IGV on %s:%d : %s", host, port, e); failuresCount++;