summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-02 22:12:40 -0800
committerOri Bernstein <ori@eigenstate.org>2015-03-02 22:12:40 -0800
commit3385db479e93b1300a10a0f638a4454e6e4a0fdd (patch)
treead272832165832a95c15cbf199c9e44aa90df282 /libstd
parent8d4569ba6d6a19fb552f87522b7ff96e07e12cf5 (diff)
downloadmc-3385db479e93b1300a10a0f638a4454e6e4a0fdd.tar.gz
Improve commenting in alloc.myr
Diffstat (limited to 'libstd')
-rw-r--r--libstd/alloc.myr14
1 files changed, 8 insertions, 6 deletions
diff --git a/libstd/alloc.myr b/libstd/alloc.myr
index e47fe3f..306667d 100644
--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -267,12 +267,14 @@ const mkslab = {bkt
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")