Dan Sugalski <[EMAIL PROTECTED]> wrote: > ... It's desperately un-thread-safe, which is > one of the things that didn't make it out in my last reply.
Your recent words related to threads were: we don't optimize for threaded programs. We optimize for the common case, that is single-threaded. I forgot that in my proposal. Subroutine PMCs need duplication for new threads. > .. You can't cache state data like this, it means > that you can't have two or more threads in the same sub PMC at once. Yes. of course. So with the small cost of duplicating sub PMCs for multiple threads we can toss all register saving code. We have to reJIT and re-prederef for threads anyway. I said, that its probably simplest to attach the code directly to the sub, or make each sub a code segment. leo