summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-18 15:11:52 +0000
committerZeev Suraski <zeev@php.net>1999-04-18 15:11:52 +0000
commit342c6e0b2328db952709dd5a35c113e2b17c1e3d (patch)
treea43236d5e2474a8f55a6e5cb9ebd262da5374770 /Zend/zend_alloc.c
parent2e8fb4e329bf98eb33dffad4c5fb1b49f73e7517 (diff)
downloadphp-git-342c6e0b2328db952709dd5a35c113e2b17c1e3d.tar.gz
Whatnot:
* updated alloc_persist to use critical sections * changed extension shutdown to two-phase * updated dependencies * PR support (don't remember if there was any really)
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 6831ae31af..92c939cd3f 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -494,6 +494,8 @@ ZEND_API void _persist_alloc(void *ptr)
_mem_block_check(ptr, 1, filename, lineno);
#endif
+ HANDLE_BLOCK_INTERRUPTIONS();
+
/* remove the block from the non persistent list */
REMOVE_POINTER_FROM_LIST(p);
@@ -501,6 +503,7 @@ ZEND_API void _persist_alloc(void *ptr)
/* add the block to the persistent list */
ADD_POINTER_TO_LIST(p);
+ HANDLE_UNBLOCK_INTERRUPTIONS();
}