[Python-checkins] python/dist/src/Objects obmalloc.c,2.48,2.49

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 26 Oct 2002 08:01:56 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv32430

Modified Files:
	obmalloc.c 
Log Message:
Patch #627105: Document that SYSTEM_PAGE_SIZE really should not be
larger than the system page size.


Index: obmalloc.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/obmalloc.c,v
retrieving revision 2.48
retrieving revision 2.49
diff -C2 -d -r2.48 -r2.49
*** obmalloc.c	12 Sep 2002 14:43:40 -0000	2.48
--- obmalloc.c	26 Oct 2002 15:01:53 -0000	2.49
***************
*** 140,144 ****
   * 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.
   */
  #define SYSTEM_PAGE_SIZE	(4 * 1024)
--- 140,147 ----
   * 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.  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)