8205131: remove Runtime trace methods

Reviewed-by: lancea, rriggs, iklam
This commit is contained in:
Stuart Marks 2019-06-10 17:33:11 -07:00
parent ac1a11dfc6
commit 6758853b54
4 changed files with 2 additions and 39 deletions

View File

@ -683,32 +683,6 @@ public class Runtime {
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
* argument must be an absolute path name.

View File

@ -145,15 +145,12 @@ public class ProcessXSLT
*/
public static void main(String argv[]) {
// Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off
boolean doStackDumpOnError = false;
boolean doDiag = false;
boolean setQuietMode = false;
String msg = null;
boolean isSecureProcessing = false;
// Runtime.getRuntime().traceMethodCalls(false);
// Runtime.getRuntime().traceInstructions(false);
/**
* The default diagnostic writer...
*/

View File

@ -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.
*
* 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.";
System.out.println(complaint);
//Runtime.getRuntime().traceMethodCalls(true);
String res = doctor.complain(complaint);
//Runtime.getRuntime().traceMethodCalls(false);
System.out.println (" => " + res);
// Get debugExec line, allowing 15 seconds for it to flush

View File

@ -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.
*
* This code is free software; you can redistribute it and/or modify it
@ -88,13 +88,7 @@ public class Recovery
Recovery handler = new Recovery();
ReliableLog log;
if (size == 4 && deathpoint == 6) {
Runtime.getRuntime().traceMethodCalls(true);
}
log = new ReliableLog(dir, handler);
if (size == 4 && deathpoint == 6) {
Runtime.getRuntime().traceMethodCalls(false);
}
// Generate a number of updates (size - 1) until failing
int i;