shithub: mc

Download patch

ref: 8be10e12710829fadb5de1ecca875bf9ae6dee93
parent: f8be9d56ee4c744995d00a25f353e72d9fe95a4c
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Mar 2 17:12:40 EST 2015

Improve commenting in alloc.myr

--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -267,12 +267,14 @@
 		bkt.cache = s.next
 		bkt.ncache--
 	;;
-	/* tricky: we need power of two alignment, so we allocate double the
-	   needed size, chop off the unaligned ends, and waste the address
-	   space. Since the OS is "smart enough", this shouldn't actually
-	   cost us memory, and 64 bits of address space means that we're not
-	   going to have issues with running out of address space for a
-	   while. On a 32 bit system this would be a bad idea. */
+	/*
+	tricky: we need power of two alignment, so we allocate double the
+	needed size, chop off the unaligned ends, and waste the address
+	space. Since the OS is "smart enough", this shouldn't actually
+	cost us memory, and 64 bits of address space means that we're not
+	going to have issues with running out of address space for a
+	while. On a 32 bit system this would be a bad idea.
+	*/
 	p = getmem(Slabsz*2)
 	if p == Failmem
 		die("Unable to mmap")