In vm/primitives.h, I read:

| We do the assignment of stack_chain->callstack_top in a ``noinline''
| function to inhibit assignment re-ordering.

stack_chain being global, in which case could an assignment
re-ordering occur? (the compiler doesn't know if it will be used in
subsequent functions, so I think it *must* do the assignment at the
right place)

And even if the compiler has a valid reason to move the assignment
around, wouldn't it be enough to make stack_chain->callstack_top
volatile?

  Sam
-- 
Samuel Tardieu -- [EMAIL PROTECTED] -- http://www.rfc1149.net/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to