summaryrefslogtreecommitdiff
path: root/lang/python/files/patch-Objects::intobject.c
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-02-09 09:54:07 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-02-09 09:54:07 +0000
commitd3a457db41524eef0d8bc9b8d54445b7b1163433 (patch)
tree11b78305919b6a74f7e60603763cf8515c613c01 /lang/python/files/patch-Objects::intobject.c
parentUpdate to 0.83.2 release. (diff)
- Use process scope threads instead of system scope to enable large
amount of threads on -CURRENT libpthread by default. [1] - Merge bugfixes from python 2.3 maintenance branch: [2] o weakref object's garbage collection problem. o save unnecessary startup-time memory allocation of 100KB+ from intobject. - SIZEify. - Bump PORTREVISION subsequently. Advised by: eischen, julian [1] Obtained from: Python CVS [2]
Notes
Notes: svn path=/head/; revision=100480
Diffstat (limited to 'lang/python/files/patch-Objects::intobject.c')
-rw-r--r--lang/python/files/patch-Objects::intobject.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/python/files/patch-Objects::intobject.c b/lang/python/files/patch-Objects::intobject.c
new file mode 100644
index 000000000000..05983721a6cb
--- /dev/null
+++ b/lang/python/files/patch-Objects::intobject.c
@@ -0,0 +1,12 @@
+diff -u python/dist/src/Objects/intobject.c:2.105 python/dist/src/Objects/intobject.c:2.105.8.1
+--- Objects/intobject.c:2.105 Sat Jun 28 13:04:24 2003
++++ Objects/intobject.c Sun Feb 8 10:56:07 2004
+@@ -1080,7 +1080,7 @@
+ int ival;
+ #if NSMALLNEGINTS + NSMALLPOSINTS > 0
+ for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) {
+- if ((free_list = fill_free_list()) == NULL)
++ if (!free_list && (free_list = fill_free_list()) == NULL)
+ return 0;
+ /* PyObject_New is inlined */
+ v = free_list;