/* * Copyright (c) 2013, 2020, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/
/* * Helper superclass for launching JDI tests out of the CDS archive.
*/
// These are the arguments passed to createJavaProcessBuilder() to launch // the JDI test.
String[] testArgs = { // JVM Args: // These first three properties are setup by jtreg, and must be passed // to the JDI test subprocess because it needs them in order to // pass them to the subprocess it will create for the debuggee. This // is how the -javaopts are passed to the debuggee. See // VMConnection.getDebuggeeVMOptions().
getPropOpt("test.classes"),
getPropOpt("test.java.opts"),
getPropOpt("test.vm.opts"), // Pass -showversion to the JDI test just so we get a bit of trace output. "-showversion", // Main class:
testname, // Args to the Main Class: // These argument all follow the above <testname> argument, and are // in fact passed to <testname>.main() as java arguments. <testname> will // pass them as JVM arguments to the debuggee process it creates. "-Xbootclasspath/a:" + appJar, "-XX:+UnlockDiagnosticVMOptions", "-Xlog:class+path=info", "-XX:SharedArchiveFile=./SharedArchiveFile.jsa", "-Xshare:on", "-showversion"
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.