You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vera Petrashkova (JIRA)" <ji...@apache.org> on 2007/07/05 07:26:04 UTC
[jira] Created: (HARMONY-4343) [buildtest][vts] Test
vm/jvmti/events/ObjectFree/ObjectFree0101/ObjectFree0101.xml should be
redesigned
[buildtest][vts] Test vm/jvmti/events/ObjectFree/ObjectFree0101/ObjectFree0101.xml should be redesigned
-------------------------------------------------------------------------------------------------------
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.
---------ObjectFree0101.java--------
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;
}
}.start();
}
return;
}
}
---------------
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.