mmtk / mmtk-julia

Julia binding for MMTk
12 stars 9 forks source link

Remove NULL ObjectReference #146

Closed wks closed 4 months ago

wks commented 4 months ago

Parent PR: https://github.com/mmtk/mmtk-core/pull/1064

wks commented 4 months ago

I managed to get the tests passing.

I made an assumption that a SimpleEdge may hold a NULL pointer. It is strange because AFAIK Julia uses nothing and missing to represent non-existing values. But when I tried to build Julia, I did observe some SimpleEdge holding NULL pointer. Currently, I just let JuliaVMEdge::load() return None if it is a SimpleEdge and the slot holds the value 0. MMTk core can gracefully skip such edges.