8205131: remove Runtime trace methods
Reviewed-by: lancea, rriggs, iklam
This commit is contained in:
parent
ac1a11dfc6
commit
6758853b54
@ -683,32 +683,6 @@ public class Runtime {
|
|||||||
SharedSecrets.getJavaLangRefAccess().runFinalization();
|
SharedSecrets.getJavaLangRefAccess().runFinalization();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Not implemented, does nothing.
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
* This method was intended to control instruction tracing.
|
|
||||||
* It has been superseded by JVM-specific tracing mechanisms.
|
|
||||||
* This method is subject to removal in a future version of Java SE.
|
|
||||||
*
|
|
||||||
* @param on ignored
|
|
||||||
*/
|
|
||||||
@Deprecated(since="9", forRemoval=true)
|
|
||||||
public void traceInstructions(boolean on) { }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Not implemented, does nothing.
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
* This method was intended to control method call tracing.
|
|
||||||
* It has been superseded by JVM-specific tracing mechanisms.
|
|
||||||
* This method is subject to removal in a future version of Java SE.
|
|
||||||
*
|
|
||||||
* @param on ignored
|
|
||||||
*/
|
|
||||||
@Deprecated(since="9", forRemoval=true)
|
|
||||||
public void traceMethodCalls(boolean on) { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the native library specified by the filename argument. The filename
|
* Loads the native library specified by the filename argument. The filename
|
||||||
* argument must be an absolute path name.
|
* argument must be an absolute path name.
|
||||||
|
@ -145,15 +145,12 @@ public class ProcessXSLT
|
|||||||
*/
|
*/
|
||||||
public static void main(String argv[]) {
|
public static void main(String argv[]) {
|
||||||
|
|
||||||
// Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off
|
|
||||||
boolean doStackDumpOnError = false;
|
boolean doStackDumpOnError = false;
|
||||||
boolean doDiag = false;
|
boolean doDiag = false;
|
||||||
boolean setQuietMode = false;
|
boolean setQuietMode = false;
|
||||||
String msg = null;
|
String msg = null;
|
||||||
boolean isSecureProcessing = false;
|
boolean isSecureProcessing = false;
|
||||||
|
|
||||||
// Runtime.getRuntime().traceMethodCalls(false);
|
|
||||||
// Runtime.getRuntime().traceInstructions(false);
|
|
||||||
/**
|
/**
|
||||||
* The default diagnostic writer...
|
* The default diagnostic writer...
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -123,9 +123,7 @@ public class SetChildEnv
|
|||||||
"WHO INQUIRE ABOUT MY PARENTS.";
|
"WHO INQUIRE ABOUT MY PARENTS.";
|
||||||
|
|
||||||
System.out.println(complaint);
|
System.out.println(complaint);
|
||||||
//Runtime.getRuntime().traceMethodCalls(true);
|
|
||||||
String res = doctor.complain(complaint);
|
String res = doctor.complain(complaint);
|
||||||
//Runtime.getRuntime().traceMethodCalls(false);
|
|
||||||
System.out.println (" => " + res);
|
System.out.println (" => " + res);
|
||||||
|
|
||||||
// Get debugExec line, allowing 15 seconds for it to flush
|
// Get debugExec line, allowing 15 seconds for it to flush
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2002, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -88,13 +88,7 @@ public class Recovery
|
|||||||
|
|
||||||
Recovery handler = new Recovery();
|
Recovery handler = new Recovery();
|
||||||
ReliableLog log;
|
ReliableLog log;
|
||||||
if (size == 4 && deathpoint == 6) {
|
|
||||||
Runtime.getRuntime().traceMethodCalls(true);
|
|
||||||
}
|
|
||||||
log = new ReliableLog(dir, handler);
|
log = new ReliableLog(dir, handler);
|
||||||
if (size == 4 && deathpoint == 6) {
|
|
||||||
Runtime.getRuntime().traceMethodCalls(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate a number of updates (size - 1) until failing
|
// Generate a number of updates (size - 1) until failing
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user