harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunrong Lai (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5395) [drlvm][Linux64 gcc bug] vm.classloading.ClassCastTest hangs
Date Thu, 24 Jan 2008 04:44:34 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561938#action_12561938
] 

Chunrong Lai commented on HARMONY-5395:
---------------------------------------


 I'd also like to share some code examples we did to workaround Linux64 GCC bugs.
 They are basically same style (value of)(pointer type cast)(taken address of variable)

 (1) Problematic code: *(int*) &hashcode = hashcode_gen(p_obj);
       Updated code:       hashcode = (POINTER_SIZE_INT)hashcode_gen(p_obj);
 (2) Problematic code: Partial_Reveal_Object *cur_obj = *(Partial_Reveal_Object **)start_pos;

                                         //statement is in an inlined function where start_pos
is passed in as (&new_object)   
       Updated code:       Partial_Reveal_Object *cur_obj = (Partial_Reveal_Object *)(*start_pos);
 (3) Problematic code: Stack_Top new_top = *(Stack_Top*)&temp;
                                        temp = (POINTER_SIZE_INT)atomic_casptr((volatile void**)&stack->top,
*(void**)&new_top, *(void**)&cur_top); 
       Updated code:      temp = (POINTER_SIZE_INT)atomic_casptr((volatile void**)&stack->top,
(void*)temp, (void*)cur_top);

> [drlvm][Linux64 gcc bug] vm.classloading.ClassCastTest hangs
> ------------------------------------------------------------
>
>                 Key: HARMONY-5395
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5395
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: DRLVM
>         Environment: revision 612006 release mode
> Linux x86_64
>            Reporter: Andrey Yakushev
>         Attachments: atomics.patch
>
>
> Update: this is a Linux64 gcc bug. Related issues grouped to HARMONY-5416.
> =====================
> [drlvm] vm.classloading.ClassCastTest stably hangs on first iteration

-- 
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