marekjm / viuavm

Parallel virtual machine designed to reliably run massively concurrent programs
https://viuavm.org/
GNU General Public License v3.0
71 stars 11 forks source link

Add a way to control relinking from user code #88

Closed marekjm closed 8 years ago

marekjm commented 9 years ago

Currently, when a link or import instruction is encountered machine loads the code for requested library regardless of whether it has been previously loaded or not. Instead, machine should check if the library has been loaded and skip the instruction if the module is already present to avoid the overhead of linking the same code more than once.

An alternative instruction will be introduced to preserve code hot-swapping capability - upgrade - which will ensure that requested library is present in the newest version available (i.e. reload it if needed).

marekjm commented 8 years ago

Superseded by #151.