summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-26 15:01:53 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-26 15:01:53 (GMT)
commit8c1402869ba0cb0a690a5168ac4067483d39e02e (patch)
tree439fcb592188d38021d568b7dca06b76f3ba0cfd /Objects
parent74b51ac1e5fb76250251a66d8d326baaaf1f1cee (diff)
downloadcpython-8c1402869ba0cb0a690a5168ac4067483d39e02e.zip
cpython-8c1402869ba0cb0a690a5168ac4067483d39e02e.tar.gz
cpython-8c1402869ba0cb0a690a5168ac4067483d39e02e.tar.bz2
Patch #627105: Document that SYSTEM_PAGE_SIZE really should not be
larger than the system page size.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/obmalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 753b2cc..a72d05a 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -139,7 +139,10 @@
* getpagesize() call or deduced from various header files. To make
* things simpler, we assume that it is 4K, which is OK for most systems.
* It is probably better if this is the native page size, but it doesn't
- * have to be.
+ * have to be. In theory, if SYSTEM_PAGE_SIZE is larger than the native page
+ * size, then `POOL_ADDR(p)->arenaindex' could rarely cause a segmentation
+ * violation fault. 4K is apparently OK for all the platforms that python
+ * currently targets.
*/
#define SYSTEM_PAGE_SIZE (4 * 1024)
#define SYSTEM_PAGE_SIZE_MASK (SYSTEM_PAGE_SIZE - 1)