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-4343) [buildtest][vts] Test vm/jvmti/events/ObjectFree/ObjectFree0101/ObjectFree0101.xml should be redesigned
Date Thu, 05 Jul 2007 05:26:04 GMT
[buildtest][vts] Test vm/jvmti/events/ObjectFree/ObjectFree0101/ObjectFree0101.xml should be

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

According to J2SE JVMTI specification of:
Object Free event
    An Object Free event is sent when the garbage collector frees an object. 
    Events are only sent for tagged objects (see heap functions). 

VTS test vm/jvmti/events/ObjectFree/ObjectFree0101/ObjectFree0101.xml 
(see source code) starts 100 threads
and expects at least one of them to be  garbage collected.
public class ObjectFree0101 {
    static public void main(String args[]) {
        for(int i = 0; i < 100; i++) {
            new Thread("special_thread") {
                public void run() {
                    byte[] bbb = new byte[1024];
                    bbb = null;

But specification does not guarantee the GC will happen at all.
As the result this test fails on Harmony.
It should be redesigned.

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

View raw message