Closed mukul-rathi closed 4 years ago
Right now if we have
let x = new Foo(f:5); finish{ async{ x.f:=6 } let w = new Foo(); } printf("X.f is %d", x.f);
This prints x.f is 5, not 6, since the thread is writing to a thread local stack.
Instead we should have heap memory for objects - use malloc()
Right now if we have
This prints x.f is 5, not 6, since the thread is writing to a thread local stack.
Instead we should have heap memory for objects - use malloc()