Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/logging/Logger.java @ 21558:d563baeca9df
changed uses of Graal terminology to JVMCI (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 May 2015 13:43:27 +0200 |
parents | b1530a6cce8c |
children |
comparison
equal
deleted
inserted
replaced
21557:31fc2fce38f3 | 21558:d563baeca9df |
---|---|
32 /** | 32 /** |
33 * Scoped logging class used to display the call hierarchy of {@link CompilerToVM} calls. | 33 * Scoped logging class used to display the call hierarchy of {@link CompilerToVM} calls. |
34 */ | 34 */ |
35 public class Logger { | 35 public class Logger { |
36 | 36 |
37 public static final boolean ENABLED = Boolean.valueOf(System.getProperty("graal.debug")); | 37 public static final boolean ENABLED = Boolean.valueOf(System.getProperty("jvmci.debug")); |
38 private static final int SPACING = 4; | 38 private static final int SPACING = 4; |
39 private static final ThreadLocal<Logger> loggerTL; | 39 private static final ThreadLocal<Logger> loggerTL; |
40 | 40 |
41 private Deque<Boolean> openStack = new LinkedList<>(); | 41 private Deque<Boolean> openStack = new LinkedList<>(); |
42 private boolean open = false; | 42 private boolean open = false; |
56 } else { | 56 } else { |
57 loggerTL = null; | 57 loggerTL = null; |
58 } | 58 } |
59 | 59 |
60 PrintStream ps = null; | 60 PrintStream ps = null; |
61 String filename = System.getProperty("graal.info_file"); | 61 String filename = System.getProperty("jvmci.info_file"); |
62 if (filename != null && !"".equals(filename)) { | 62 if (filename != null && !"".equals(filename)) { |
63 try { | 63 try { |
64 ps = new PrintStream(new FileOutputStream(filename)); | 64 ps = new PrintStream(new FileOutputStream(filename)); |
65 } catch (FileNotFoundException e) { | 65 } catch (FileNotFoundException e) { |
66 e.printStackTrace(); | 66 e.printStackTrace(); |