harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3675) [drlvm][classloader] vm.classloading.ClassAttributeTest reliability test fails with assertion
Date Wed, 30 May 2007 13:21:15 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Pervov updated HARMONY-3675:
----------------------------------

    Attachment: H3675.patch

This was the issue once, and this will be the issue many times more.

Implementation of "static" keyword in Microsoft C++ compiler generates the code which is not
thread safe for initializing the variable. I changed this to be "positively thread unsafe"
- uninitialized value will never be used here.

> [drlvm][classloader] vm.classloading.ClassAttributeTest reliability test fails with assertion
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3675
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3675
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Aleksey Ignatenko
>         Attachments: H3675.patch
>
>
> 2 reliability tests: vm.classloading.ClassAttributeTest and ClassReflectionTest (can
be taken in H-2918) fail with assertion when launched with number of threads > 2 (stably
fail when number of thread = 2).
> Stack trace:
>  	harmonyvm.dll!_assert(const char * expr=0x0077ce3c, const char * filename=0x0077cdf0,
unsigned int lineno=788)  Line 295	C
> >	harmonyvm.dll!struct_Class_to_java_lang_Class_Handle(Class * clss=0x00000000)  Line
788 + 0x1a	C++
>  	harmonyvm.dll!get_annotations(JNIEnv_External * jenv=0x02ea2570, AnnotationTable *
table=0x00000000, AnnotationTable * inv_table=0x00000000, Class * clss=0x02d655b8)  Line 53
+ 0xd	C++
>  	harmonyvm.dll!Java_org_apache_harmony_vm_VMGenericsAndAnnotations_getDeclaredAnnotations__Ljava_lang_Class_2(JNIEnv_External
* jenv=0x02ea2570, _jobject * __formal=0x0372f67c, _jobject * jclazz=0x0372f680)  Line 76
+ 0x1f	C++
>  	0360ce46()	
>  	harmonyvm.dll!free_local_object_handles3(ObjectHandles * head=)  Line 455 + 0xa	C++
> To reproduce one needs to 
> 1. modify run/run.normal.mode.settings.xml:
> -<property name="vm.classloading.ClassAttributesTest.n_threads" value="8" />
> -<property name="vm.classloading.ClassAttributesTest.n_threads" value="2" />
> -<property name="vm.classloading.ClassReflectionTest.n_threads" value="8" />
> +<property name="vm.classloading.ClassReflectionTest.n_threads" value="2" />
> 2. compile reliability suit
> 3. cd run folder, execute "ant -f run.xml run.vm"
> Checked and reproduced on WinIA32 only.

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


Mime
View raw message