@@ -732,8 +732,8 @@ static GCObject **sweeplist (lua_State *L, GCObject** list, GCObject **p, lu_mem
732732 int tostop ; /* stop sweep when this is true */
733733 if (isgenerational (g )) { /* generational mode? */
734734 toclear = ~0 ; /* clear nothing */
735- toset = bitmask (OLDBIT ); /* set the old bit of all surviving objects */
736- tostop = bitmask (OLDBIT ); /* do not sweep old generation */
735+ toset = BITMASK (OLDBIT ); /* set the old bit of all surviving objects */
736+ tostop = BITMASK (OLDBIT ); /* do not sweep old generation */
737737 }
738738 else { /* normal mode */
739739 toclear = maskcolors ; /* clear all color bits + old bit */
@@ -934,7 +934,7 @@ void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) {
934934
935935
936936#define sweepphases \
937- (bitmask (GCSsweepstring) | bitmask (GCSsweepudata) | bitmask (GCSsweep))
937+ (BITMASK (GCSsweepstring) | BITMASK (GCSsweepudata) | BITMASK (GCSsweep))
938938
939939
940940/*
@@ -972,7 +972,7 @@ void luaC_changemode (lua_State *L, int mode) {
972972 if (mode == g -> gckind ) return ; /* nothing to change */
973973 if (mode == KGC_GEN ) { /* change to generational mode */
974974 /* make sure gray lists are consistent */
975- luaC_runtilstate (L , bitmask (GCSpropagate ));
975+ luaC_runtilstate (L , BITMASK (GCSpropagate ));
976976 g -> GCestimate = gettotalbytes (g );
977977 g -> gckind = KGC_GEN ;
978978 }
@@ -1143,8 +1143,8 @@ static void generationalcollection (lua_State *L) {
11431143 }
11441144 else {
11451145 lu_mem estimate = g -> GCestimate ;
1146- luaC_runtilstate (L , ~bitmask (GCSpause )); /* run complete cycle */
1147- luaC_runtilstate (L , bitmask (GCSpause ));
1146+ luaC_runtilstate (L , ~BITMASK (GCSpause )); /* run complete cycle */
1147+ luaC_runtilstate (L , BITMASK (GCSpause ));
11481148 if (gettotalbytes (g ) > (estimate / 100 ) * g -> gcmajorinc )
11491149 g -> GCestimate = 0 ; /* signal for a major collection */
11501150 }
@@ -1218,13 +1218,13 @@ void luaC_fullgc (lua_State *L, int isemergency) {
12181218 entersweep (L );
12191219 }
12201220 /* finish any pending sweep phase to start a new cycle */
1221- luaC_runtilstate (L , bitmask (GCSpause ));
1221+ luaC_runtilstate (L , BITMASK (GCSpause ));
12221222 /* run entire collector */
1223- luaC_runtilstate (L , ~bitmask (GCSpause ));
1224- luaC_runtilstate (L , bitmask (GCSpause ));
1223+ luaC_runtilstate (L , ~BITMASK (GCSpause ));
1224+ luaC_runtilstate (L , BITMASK (GCSpause ));
12251225 if (origkind == KGC_GEN ) { /* generational mode? */
12261226 /* generational mode must always start in propagate phase */
1227- luaC_runtilstate (L , bitmask (GCSpropagate ));
1227+ luaC_runtilstate (L , BITMASK (GCSpropagate ));
12281228 }
12291229 g -> gckind = origkind ;
12301230 luaE_setdebt (g , stddebt (g ));
0 commit comments