summaryrefslogtreecommitdiff
path: root/src/include/utils/memutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/memutils.h')
-rw-r--r--src/include/utils/memutils.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h
index 4d105793d9..597ffc9b56 100644
--- a/src/include/utils/memutils.h
+++ b/src/include/utils/memutils.h
@@ -68,9 +68,9 @@
* On systems with 8-byte alignment, we allow 29 bits for the context ID and
* 32 bits for the size. This allows for up to half a billion context IDs and
* sizes of up to 1 byte less than 4GB. Thus, extended headers should
- * almost never be required. On systems with 4-byte alignment, we allow 11
- * bits for the context ID and 18 bits for the size, which allows for up to
- * 2048 possible context IDs and allocations of up to 1 byte less than 256kB.
+ * almost never be required. On systems with 4-byte alignment, we allow 20
+ * bits for the context ID and 19 bits for the size, which allows for up to
+ * 1 million possible context IDs and allocations of up to 511 bytes.
* This should be good enough that most allocations won't need an extended
* header, but some will.
*/
@@ -81,8 +81,8 @@ typedef uint64 chunk_unsigned;
#define CHUNK_SIZE_BITS 32
#else
typedef uint32 chunk_unsigned;
-#define CHUNK_CONTEXT_ID_BITS 11
-#define CHUNK_SIZE_BITS 18
+#define CHUNK_CONTEXT_ID_BITS 20
+#define CHUNK_SIZE_BITS 9
#endif
/* Context type codes; must be less than 1 << CHUNK_CONTEXT_TYPE_BITS. */