Embed mutex lock the right way.
@@ -142,7 +142,7 @@ func New(fileDir string, args []string) (vm *VM, e error) {
}
func (vm *VM) newThread() *thread {
- s := &stack{RWMutex: new(sync.RWMutex)}
+ s := &stack{}
cfs := &callFrameStack{callFrames: []callFrame{}}
t := &thread{stack: s, callFrameStack: cfs, sp: 0, cfp: 0}
s.thread = t
