lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I have ported the generational GC to Ravi, but Ravi's up-value model
is based on the reference counting approach in Lua 5.3. My question is
this:

What should the age of an upvalue be set to in an upvalue barrier?

I see that the code in Lua looked like this before the up-value
implementation was changed:

void luaC_upvalbarrier_ (lua_State *L, GCObject *o) {
  global_State *g = G(L);
  if (keepinvariant(g) && !isold(o)) {
    markobject(g, o);
    setage(o, G_OLD0);
  }
}

I am trying to figure out if OLD0 is still the correct age to set to.

Regards
Dibyendu