shithub: mc

Download patch

ref: 86f488a953c6830c6f39203aac8be34a338e1d44
parent: 11755c230ea87f02e334978daa731f1c31815986
author: Ori Bernstein <[email protected]>
date: Fri Dec 29 07:22:35 EST 2017

'c' for chunk.

--- a/lib/std/bytealloc.myr
+++ b/lib/std/bytealloc.myr
@@ -320,8 +320,7 @@
 if there are no slabs on the freelist.
 */
 const bktalloc = {bkt
-	var s
-	var b
+	var s, c
 
 	/* find a slab */
 	s = bkt.slabs
@@ -334,8 +333,8 @@
 	;;
 
 	/* grab the first chunk on the slab */
-	b = s.freehd
-	s.freehd = b.next
+	c = s.freehd
+	s.freehd = c.next
 	s.nfree--
 	if s.freehd == Zchunk
 		bkt.slabs = s.next
@@ -343,7 +342,7 @@
 			s.next.prev = Zslab
 		;;
 	;;
-	-> (b : byte#)
+	-> (c : byte#)
 }
 
 /*
@@ -353,10 +352,10 @@
 if this is not the case.
 */
 const bktfree = {bkt, m
-	var s, b
+	var s, c
 
 	s = (mtrunc(m, Slabsz) : slab#)
-	b = (m : chunk#)
+	c = (m : chunk#)
 	if s.nfree == 0
 		if bkt.slabs != Zslab
 			bkt.slabs.prev = s
@@ -392,8 +391,8 @@
 		-> void
 	;;
 	s.nfree++
-	b.next = s.freehd
-	s.freehd = b
+	c.next = s.freehd
+	s.freehd = c
 }
 
 /*