Re: Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref
| From: | David Wang | Date: | Tue, 04 Sep 2007 16:45:26 +0000 |
| Subject: | Re: Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32040@lists.php.net to get a copy of this message | ||
> currently you only have one statement in each of those functions..
> anyway it's not critical to have static inline functions.
I will need to have them (multiple statements) for the cycle
collection code, and I don't think there are many situations involving
changing the way reference counting is done where only one statement
is sufficient. In any case, it's good future-proofing.
> nops. The Zend engine redefines the inline keyword itself somewhere.
Hmm. I did not know that. Where? A quick grep doesn't seem to show
anything significant. And I do know (experimentally) that a vast
number of supposed "inline" functions aren't actually inlined
currently because the compiler decides it doesn't want to do it. It
gave me a lot of problems when I was trying to optimize my gc code.