don't mark nogc fields

This commit is contained in:
Joshua Warner 2014-06-25 19:59:01 -06:00 committed by Joshua Warner
parent 40e71a4856
commit 43b9cce7d0

View File

@ -1009,7 +1009,7 @@ bool isFieldGcVisible(Module& module, Field& f) {
}
bool isFieldGcMarkable(Module& module, Field& f) {
return (f.typeName == "maybe_object" || enumName(module, f) == "object");
return (f.typeName == "maybe_object" || enumName(module, f) == "object") && !f.nogc;
}
void writeClassAccessors(Output* out, Module& module, Class* cl)