ReadyTalk / avian

[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
https://readytalk.github.io/avian/
Other
1.22k stars 172 forks source link

fix a few memory safety issues #513

Closed dicej closed 7 years ago

dicej commented 7 years ago

The main issue was that offsets for GC roots on the stack were being miscalculated because invokedynamic bootstrap methods are invoked as static methods but were not being flagged as such.

Also, I forgot to initialize MyThread::dynamicTable in the constructor (and why the hell doesn't gcc -Wall warn me about stuff like that?)