aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-18 10:46:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-18 10:46:26 -0300
commit3f78de256e5759669460c6fa14455303762f2f53 (patch)
tree287ae3d2ccf441b4158f7a2e29feb21c39188711 /lstate.c
parentd764cc552251fc69207c1bb4b34d3a6a5b7020c6 (diff)
downloadlua-3f78de256e5759669460c6fa14455303762f2f53.tar.gz
lua-3f78de256e5759669460c6fa14455303762f2f53.tar.bz2
lua-3f78de256e5759669460c6fa14455303762f2f53.zip
no need to keep threads in a different GC list, now that there is the
'twups' list
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lstate.c b/lstate.c
index bc235941..123dd198 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.119 2014/02/13 14:46:38 roberto Exp roberto $ 2** $Id: lstate.c,v 2.120 2014/02/18 13:39:37 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -260,9 +260,9 @@ LUA_API lua_State *lua_newthread (lua_State *L) {
260 L1 = &cast(LX *, luaM_newobject(L, LUA_TTHREAD, sizeof(LX)))->l; 260 L1 = &cast(LX *, luaM_newobject(L, LUA_TTHREAD, sizeof(LX)))->l;
261 L1->marked = luaC_white(g); 261 L1->marked = luaC_white(g);
262 L1->tt = LUA_TTHREAD; 262 L1->tt = LUA_TTHREAD;
263 /* link it on list of threads */ 263 /* link it on list 'allgc' */
264 L1->next = g->mainthread->next; 264 L1->next = g->allgc;
265 g->mainthread->next = obj2gco(L1); 265 g->allgc = obj2gco(L1);
266 setthvalue(L, L->top, L1); 266 setthvalue(L, L->top, L1);
267 api_incr_top(L); 267 api_incr_top(L);
268 preinit_thread(L1, g); 268 preinit_thread(L1, g);