Changeset ade1c47 in git


Ignore:
Timestamp:
2012-03-22T17:53:11Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
a7ad7cb
Parents:
9e42d11
Message:

PHP_5_4: empty hashtable was optimized

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@824 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • processor/hashtable.m4

    r9e42d11 rade1c47  
    8888        IFCOPY(`dst->pInternalPointer = NULL;   /* Used for element traversal */') DONE(pInternalPointer)
    8989        IFCOPY(`dst->pListHead = NULL;') DONE(pListHead)
     90#ifdef ZEND_ENGINE_2_4
     91        if (src->nTableMask) {
     92#endif
    9093        CALLOC(dst->arBuckets, Bucket*, src->nTableSize)
    9194        DONE(arBuckets)
    9295        DISABLECHECK(`
    93 
    9496        for (b = src->pListHead; b != NULL; b = b->pListNext) {
    9597            ifelse($4, `', `', `
     
    155157        }
    156158        ')
     159#ifdef ZEND_ENGINE_2_4
     160    }
     161    else { /* if (src->nTableMask) */
     162        DONE(arBuckets)
     163    }
     164#endif
    157165        IFCOPY(`dst->pListTail = pnew;') DONE(pListTail)
    158166        IFCOPY(`dst->pDestructor = src->pDestructor;') DONE(pDestructor)
Note: See TracChangeset for help on using the changeset viewer.