lua-users home
lua-l archive

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


Hi Roberto,

It appears my environment is being collected.

before resuming the coro I have the thread
environment as

table      00EAC4F0

I only trace tables so the code in lgc is

 for (o = l->stack; o < l->top; o++) {
  if (TRAPON && o->tt == 5) {
  odebug("marking %d\n", o->tt);
  odebug("marking %04x\n", hvalue(o));
  }
  markvalue(g, o);
 }
 for (; o <= lim; o++) {
  if (TRAPON && o->tt == 5) {
   odebug("erasing %d\n", o->tt);
   odebug("erasing %04x\n", hvalue(o));
  }
   setnilvalue(o);
 }


I get output

env =	table: 00EAC4F0
marking 5
marking e98db0
marking 5
marking eac4f0
marking 5
marking e94c28
marking 5
marking e98db0
marking 5
marking eac4f0
erasing 5
erasing eac4f0
erasing 5
erasing e928a0
erasing 5
erasing e928a0
marking 5
marking e98db0
marking 5
marking eac4f0
marking 5
marking e98db0

(followed by 100000 or so more entries)


David B