[M3devel] RTHeapStats assumption of two calls in ProcessStacks?

Tony Hosking hosking at cs.purdue.edu
Sun Nov 22 19:32:38 CET 2009


Yes, I had forgotten about that nasty assumption.  That code should really be fixed to eliminate the assumption.

Antony Hosking | Associate Professor | Computer Science | Purdue University
305 N. University Street | West Lafayette | IN 47907 | USA
Office +1 765 494 6001 | Mobile +1 765 427 5484




On 22 Nov 2009, at 03:41, Jay K wrote:

> UNSAFE MODULE RTHeapStats;
> 
> (* The code below makes the following NASTY assumption:
>       ThreadInternal.ProcessStacks calls its argument twice for
>       each thread -- the first time for the stack, the
>       second time for its registers. *)
> 
>  
>  
> It makes sense to violate this assumption, for the current running thread.
> But I guess there isn't anything to gain by doing that?
>  
>  
> Thoughts?
>  
> I'll preserve this behavior, which I was otherwise on the verge of changing.
>  
>  
>  - Jay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091122/e77d50bd/attachment-0002.html>


More information about the M3devel mailing list