Author: allison
Date: Sun Apr 22 20:59:18 2007
New Revision: 18299

Modified:
   trunk/src/gc/register.c

Log:
Adding Patrick Rutkowski's comments on rationale behind context allocation code.


Modified: trunk/src/gc/register.c
==============================================================================
--- trunk/src/gc/register.c     (original)
+++ trunk/src/gc/register.c     Sun Apr 22 20:59:18 2007
@@ -324,6 +324,8 @@
 
 #define SLOT_CHUNK_SIZE 8
 
+/* Round register allocation size up to the nearest multiple of 8. A
+ * granularity of 8 is arbitrary, it could have been some bigger power of 2. */
 #define CALCULATE_SLOT(all_regs_size) ((all_regs_size + SLOT_CHUNK_SIZE - 1) / 
SLOT_CHUNK_SIZE)
 #define CALCULATE_ALLOC_SIZE(all_regs_size) (((all_regs_size + SLOT_CHUNK_SIZE 
- 1) / SLOT_CHUNK_SIZE) * SLOT_CHUNK_SIZE)
 

Reply via email to