From 342c6e0b2328db952709dd5a35c113e2b17c1e3d Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 18 Apr 1999 15:11:52 +0000 Subject: 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) --- Zend/zend_alloc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zend/zend_alloc.c') 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(); } -- cgit v1.2.1