cesanta / mjs

Embedded JavaScript engine for C/C++
https://mongoose-os.com
Other
1.88k stars 172 forks source link

MARK/UNMARK macros break addresses #235

Closed petabyt closed 1 year ago

petabyt commented 1 year ago

Testing in the Unicorn engine. UNMARK, MARK, UNMARK_FREE, and MARK_FREE mess up an address in the GC arena structure. Some basic code works when I remove usage of the macros, but let i = 0; halts the code forever. Edit: breaks when the addresses are uneven, make sure they end in 0.