Name: kbR10066 Date: 01/10/2002
Starting from JDK1.4.0 build 90 Jcov agent run with ec=on (enable workaround for JVMPI bug 4400212)
causes java.util.EmptyStackException when trying to profile a simplest program:
> java -Xrunjcov:ec=on,t=m -cp . HelloWorld
Exception in thread "main" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:79)
at java.lang.ClassLoader$NativeLibrary.getFromClass(ClassLoader.java:1294)
at java.lang.ClassLoader$NativeLibrary.find(Native Method)
at java.lang.ClassLoader.findNative(ClassLoader.java:1502)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
This leads to a loss of coverage info for java/lang/ClassLoader$NativeLibrary inner class,
and changes execution semantics.
======================================================================
- relates to
-
JDK-4400212 JVM_OnLoad function called after most of JDK classes are loaded
-
- Closed
-