Skip to content

Commit c006c5d

Browse files
author
Arash Kazemi Koohbanani
committed
[GR-60012] Fix usages of System.out/err in CFGPrinterObserver
PullRequest: graal/19393
2 parents 40a4643 + 1ccba74 commit c006c5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/printer/CFGPrinterObserver.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -79,7 +79,7 @@ public void dump(Object object, DebugContext debug, boolean forced, String forma
7979
dumpSandboxed(debug, object, forced, message);
8080
} catch (Throwable ex) {
8181
TTY.println("CFGPrinter: Exception during output of " + message + ": " + ex);
82-
ex.printStackTrace();
82+
ex.printStackTrace(TTY.out);
8383
}
8484
}
8585

@@ -253,7 +253,7 @@ private static DisassemblerProvider selectDisassemblerProvider(OptionValues opti
253253
}
254254
}
255255
} catch (ServiceConfigurationError e) {
256-
e.printStackTrace();
256+
e.printStackTrace(TTY.out);
257257
}
258258
}
259259
if (selected == null) {

0 commit comments

Comments
 (0)