mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
control of garbage collection is done with Longs, as there can be
more than WORD objects to collect.
This commit is contained in:
parent
53c0a0f43c
commit
8faf4d1de2
5 changed files with 16 additions and 14 deletions
6
hash.c
6
hash.c
|
|
@ -3,7 +3,7 @@
|
|||
** hash manager for lua
|
||||
*/
|
||||
|
||||
char *rcs_hash="$Id: hash.c,v 2.21 1994/12/16 15:55:04 roberto Exp roberto $";
|
||||
char *rcs_hash="$Id: hash.c,v 2.22 1994/12/20 21:20:36 roberto Exp roberto $";
|
||||
|
||||
#include "mem.h"
|
||||
#include "opcode.h"
|
||||
|
|
@ -185,10 +185,10 @@ static void call_fallbacks (void)
|
|||
** Garbage collection to arrays
|
||||
** Delete all unmarked arrays.
|
||||
*/
|
||||
Word lua_hashcollector (void)
|
||||
Long lua_hashcollector (void)
|
||||
{
|
||||
Hash *curr_array = listhead, *prev = NULL;
|
||||
Word counter = 0;
|
||||
Long counter = 0;
|
||||
call_fallbacks();
|
||||
while (curr_array != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue