[Vm-dev] Running the VM in another thread
Pierce Ng
pierce at samadhiweb.com
Sun Feb 2 05:28:14 UTC 2020
Hi Eliot and VM hackers,
I wrote the simplest pthread C program that invokes osvm_main() in a
separate thread.
On Linux Ubuntu 18.04, with minheadless.pharo.cog.spur's
libPharoVMCore.a and a Pharo 8 image, the program ran to completion
printing Pharo's command line handler help on stdout.
On MacOS Mojave, the same C program separately linked to
PharoVMCore.framework and SqueakVMCore.framework crash at the line
bzero(abstractOpcodes, allocBytes) in compileCogMethod() in
cogitX64SysV.c
Is this A or B?
A - Not meant to work. The VM must run on the main thread. On Linux the
program only ran by happenstance.
B - Meant to work. Crashing on MacOS is a bug.
Thanks. Cheers.
More information about the Vm-dev
mailing list