src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigStore.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Sdiff src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigStore.java

Print this page




 176         for (VMFlag flag : flags.values()) {
 177             printConfigLine(vm, "[vmconfig:flag] %s %s = %s%n", flag.type, flag.name, flag.value);
 178         }
 179         TreeMap<String, Long> addresses = new TreeMap<>(getAddresses());
 180         for (Map.Entry<String, Long> e : addresses.entrySet()) {
 181             printConfigLine(vm, "[vmconfig:address] %s = %d[0x%x]%n", e.getKey(), e.getValue(), e.getValue());
 182         }
 183         TreeMap<String, Long> constants = new TreeMap<>(getConstants());
 184         for (Map.Entry<String, Long> e : constants.entrySet()) {
 185             printConfigLine(vm, "[vmconfig:constant] %s = %d[0x%x]%n", e.getKey(), e.getValue(), e.getValue());
 186         }
 187         for (VMIntrinsicMethod e : getIntrinsics()) {
 188             printConfigLine(vm, "[vmconfig:intrinsic] %d = %s.%s %s%n", e.id, e.declaringClass, e.name, e.descriptor);
 189         }
 190     }
 191 
 192     @SuppressFBWarnings(value = "DM_DEFAULT_ENCODING", justification = "no localization here please!")
 193     private static void printConfigLine(CompilerToVM vm, String format, Object... args) {
 194         String line = String.format(format, args);
 195         byte[] lineBytes = line.getBytes();
 196         vm.writeDebugOutput(lineBytes, 0, lineBytes.length);
 197         vm.flushDebugOutput();
 198     }
 199 
 200 }


 176         for (VMFlag flag : flags.values()) {
 177             printConfigLine(vm, "[vmconfig:flag] %s %s = %s%n", flag.type, flag.name, flag.value);
 178         }
 179         TreeMap<String, Long> addresses = new TreeMap<>(getAddresses());
 180         for (Map.Entry<String, Long> e : addresses.entrySet()) {
 181             printConfigLine(vm, "[vmconfig:address] %s = %d[0x%x]%n", e.getKey(), e.getValue(), e.getValue());
 182         }
 183         TreeMap<String, Long> constants = new TreeMap<>(getConstants());
 184         for (Map.Entry<String, Long> e : constants.entrySet()) {
 185             printConfigLine(vm, "[vmconfig:constant] %s = %d[0x%x]%n", e.getKey(), e.getValue(), e.getValue());
 186         }
 187         for (VMIntrinsicMethod e : getIntrinsics()) {
 188             printConfigLine(vm, "[vmconfig:intrinsic] %d = %s.%s %s%n", e.id, e.declaringClass, e.name, e.descriptor);
 189         }
 190     }
 191 
 192     @SuppressFBWarnings(value = "DM_DEFAULT_ENCODING", justification = "no localization here please!")
 193     private static void printConfigLine(CompilerToVM vm, String format, Object... args) {
 194         String line = String.format(format, args);
 195         byte[] lineBytes = line.getBytes();
 196         vm.writeDebugOutput(lineBytes, 0, lineBytes.length, true, true);

 197     }
 198 
 199 }
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigStore.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File