[wasm] Add normal GC support. (mono/mono#15577)
authorZoltan Varga <vargaz@gmail.com>
Thu, 1 Aug 2019 13:50:28 +0000 (09:50 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 1 Aug 2019 13:50:28 +0000 (15:50 +0200)
commit389be94578c0797741840be61872740e0bab078a
tree65ecb75d230b2b9ac8322e23e51cdf2db5357ae6
parent1a6ffad8b8bf1ebfe696384e246de6466c68a3bd
 [wasm] Add normal GC support. (mono/mono#15577)

* [llvm] Spill all ref variables to the stack on wasm, so GC stack scanning can scan all references.

* [runtime] Add an option to enable on-demand GC.

Commit migrated from https://github.com/mono/mono/commit/6a66472815ff06d365281cd5cb6c2cf60b4ac138
src/mono/mono/metadata/sgen-mono.c
src/mono/mono/mini/mini-llvm.c
src/mono/mono/sgen/sgen-gc.c