harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vera Petrashkova (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4319) [buildtest][vts] Test vm/jvmti/events/CompiledMethodUnload/CompiledMethodUnload0101/CompiledMethodUnload0101.xml is incorrect
Date Tue, 03 Jul 2007 09:24:04 GMT
[buildtest][vts] Test vm/jvmti/events/CompiledMethodUnload/CompiledMethodUnload0101/CompiledMethodUnload0101.xml
 is incorrect

                 Key: HARMONY-4319
                 URL: https://issues.apache.org/jira/browse/HARMONY-4319
             Project: Harmony
          Issue Type: Bug
          Components: build - test - ci
            Reporter: Vera Petrashkova

According to J2SE JVMTI specification:

Compiled Method Unload event
   sent when a compiled method is unloaded from memory. 
   This event might not be sent on the thread which performed the unload. 
   This event may be sent sometime after the unload occurs, but will be sent 
   before the memory is reused by a newly generated compiled method. 
   This event may be sent after the class is unloaded.

This test 
 - defines CustomClassLoader_CompiledMethodUnload0101
   which extends system ClassLoader
-----------see CompiledMethodUnload0101.java-----------
class CustomClassLoader_CompiledMethodUnload0101 extends ClassLoader {
    int fake = 0;
- loads class SpecialClass001;
- runs some method from this class.

Then the test removes references to the used method, class and class loader, 
invokes System.gc() several times and expects that the class will
be unloaded.

In fact SpecialClass001 was loaded by system class loader.
This class is not unloaded when the test deletes its references.

As the result VM does not send CompiledMethodUnload and this test fails on RI
and on Harmony.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message