#648: [PATCH] src/gc/system.c compile on HPUX
----------------------+-----------------------------------------------------
 Reporter:  rrauenza  |       Owner:  Infinoid
     Type:  bug       |      Status:  new     
 Priority:  normal    |   Milestone:          
Component:  none      |     Version:  1.1.0   
 Severity:  medium    |    Keywords:          
     Lang:            |       Patch:          
 Platform:            |  
----------------------+-----------------------------------------------------

Comment(by whiteknight):

 Infinoid: I think you're right about your analysis of this function. At
 the least, it's the same conclusion that I came to. getcontext() should be
 returning the processor register set into a variable on the call stack for
 later scanning by the GC. I also share your concern that this variable is
 likely to get optimized away. I don't have an HPUX platform to test on,
 but I strongly suspect this is the case.

 I'm in the middle of some GC-related cleanups and the mess in
 src/gc/system.c is high up on my priorities list. One potential quick-fix
 solution would be to mark the variable as "volatile", although the
 compiler might complain that marking a local variable like that as
 volatile is nonsensical. I've got some better, more in-depth ideas for
 fixing this permanently, but if this is giving a problem the "volatile"
 keyword might just make it go away.

 Anyway, that's me going off on a tangent. The GC is getting all cleaned up
 soon so don't worry about these issues unless they are causing a major
 problem.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/648#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to