> Stats Nodes are refcounted, I don't know enough about how that works,
> but it seems like there could be a problem if you had a statistics
> that spanned threads.
Ah, those objects are for creating formulas and don't really get passed around.

> Another option would be to have a boolean that said if it needed to be
> atomic or not. If you knew that the object wouldn't span threads it
> wouldn't need to be set or perhaps at the point when it changed
> threads it could be set. The logic needs to be a bit better than
> atomic inc/dec since you could possibly have double free case if you
> aren't careful.
Yes, you'd need a decrement and test or something like that.
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to