db4d383614
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282 Co-authored-by: Alex Buckley <alex.buckley@oracle.com> Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com> Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com> Co-authored-by: Mandy Chung <mandy.chung@oracle.com> Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com> Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com> Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com> Co-authored-by: Amy Lu <amy.lu@oracle.com> Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com> Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com> Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com> Co-authored-by: Harold Seigel <harold.seigel@oracle.com> Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com> Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com> Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com> Co-authored-by: James Laskey <james.laskey@oracle.com> Co-authored-by: Lois Foltan <lois.foltan@oracle.com> Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com> Co-authored-by: Huaming Li <huaming.li@oracle.com> Co-authored-by: Sean Mullan <sean.mullan@oracle.com> Co-authored-by: Naoto Sato <naoto.sato@oracle.com> Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com> Co-authored-by: Peter Levart <peter.levart@gmail.com> Co-authored-by: Philip Race <philip.race@oracle.com> Co-authored-by: Claes Redestad <claes.redestad@oracle.com> Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com> Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com> Co-authored-by: Volker Simonis <volker.simonis@gmail.com> Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com> Co-authored-by: Stuart Marks <stuart.marks@oracle.com> Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com> Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com> Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com> Co-authored-by: Valerie Peng <valerie.peng@oracle.com> Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com> Co-authored-by: Weijun Wang <weijun.wang@oracle.com> Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com> Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com> Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com> Co-authored-by: Felix Yang <felix.yang@oracle.com> Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com> Co-authored-by: Frank Yuan <frank.yuan@oracle.com> Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com> Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com> Co-authored-by: Tiantian Du <tiantian.du@oracle.com> Co-authored-by: Sha Jiang <sha.jiang@oracle.com> Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
######################################################################## # This file contains example scripts and property files for collecting # code coverage data of the RMI regression suite. # # Since many RMI regression tests spawn child VMs (either directly # or through activation), special support is required for setting # command line options and arguments needed by jcov - the code coverage # instrumentation and collection tool. This special support is provided # by properties in the test.props file. If a file named ../../test.props # exists (assuming the working directory is "<path>/JTwork/scratch", this # will find "<path>/test.props"), then it will be used by test library # code that spawns VMs or instances of rmid. See the example test.props # file below for the properties that may be defined. ######################################################################## # The following is a script used to execute RMI regression tests # on Solaris and collect code coverage data. #!/bin/ksh export JAVA_HOME=<path to special JDK jcov instrumented build> export JT_HOME=<path to special JTREG build with jcov hooks> export CLASSPATH=.:${JT_HOME}/javatest.jar export OPTS="-Xms256m -Xmx256m -XX:+UseUnsupportedDeprecatedJVMPI -XX:+EnableJVMPIInstructionStartEvent -XX:-UseFastEmptyMethods -XX:-UseFastAccessorMethods -timeoutFactor:4" export TESTBASE=/files/<JDK workspace>/test ${JT_HOME}/solaris/bin/jtreg -Xrunjcov:file=/files/rmi.jcov ${OPTS} -va -w:/tmp/JT -r:/tmp/JTreport -jdk:${JAVA_HOME} ${TESTBASE} ######################################################################## # The following section is an example test.props property file # used for collecting code coverage data for JDK 1.6. These properties # are currently supported: # jcov.options are the jcov options that should be added to VMs # system properties # rmid.jcov.args are the jcov options that should be added as # arguments to rmid command line; effectively, these # are identical to jcov.options but each option is # prefaced with '-C' # jcov.sleep.multiplier is an integer that will be multiplied by # various wait times in the test library; the # default value used is '1' jcov.options=-Xrunjcov:file=/files/rmi.jcov -Xms256m -Xmx256m -XX:+UseUnsupportedDeprecatedJVMPI -XX:+EnableJVMPIInstructionStartEvent -XX:-UseFastEmptyMethods -XX:-UseFastAccessorMethods rmid.jcov.args=-C-Xrunjcov:file=/files/rmi.jcov -C-Xms256m -C-Xmx256m -C-XX:+UseUnsupportedDeprecatedJVMPI -C-XX:+EnableJVMPIInstructionStartEvent -C-XX:-UseFastEmptyMethods -C-XX:-UseFastAccessorMethods jcov.sleep.multiplier=3 ######################################################################## # The following section is an example script that generates the # jcov report. The important documentation here is the list of Java # packages and classes that are included in the RMI coverage report. #!/bin/ksh export CLASSPATH=<path to jcov.jar> export SRCS=<path to sources of the instrumented JDK build> java com.sun.tdk.jcov.MergerMain <path to jcov 'A' template for the build>template_a.jcov /files/rmi.jcov java -Xms256m -Xmx512m com.sun.tdk.jcov.RepGenMain -fmt=html_ns -src_root=${SRCS} \ -include=java.rmi.* \ -include=java.rmi.activation.* \ -include=java.rmi.dgc.* \ -include=java.rmi.registry.* \ -include=java.rmi.server.* \ -include=sun.rmi.log.* \ -include=sun.rmi.registry.* \ -include=sun.rmi.runtime.* \ -include=sun.rmi.server.* \ -include=sun.rmi.transport.* \ -include=sun.rmi.transport.proxy.* \ -include=sun.rmi.transport.tcp.* \ -include=java.lang.reflect.Proxy \ -include=sun.misc.ProxyGenerator \ -exclude=com.sun.rmi.rmid.* \ -exclude=sun.rmi.rmic.* \ -exclude=sun.rmi.rmic.iiop.* \ -exclude=javax.rmi.ssl.* \ java.jcov