Dmitry Stogov
3e7c4195e3
Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm.
2007-03-20 06:47:12 +00:00
Antony Dovgal
e23af20804
fix #40800 (cannot disable memory_limit with -1)
2007-03-14 11:57:16 +00:00
Antony Dovgal
2099208dc8
fix build
2007-02-16 18:23:53 +00:00
Stanislav Malyshev
aa827cf2b9
add safe_realloc
2007-02-16 18:12:34 +00:00
Sara Golemon
110a1b6788
Typo
2007-01-07 19:04:33 +00:00
Sara Golemon
d3149fbda4
Add pestrndup()
2007-01-07 06:16:10 +00:00
Sara Golemon
6f234cbf6f
Fix prior commit noticing this time that persistent allocators start with zend_*() and that one already exists
2007-01-07 05:45:07 +00:00
Sara Golemon
97ee887a13
Flesh out some missing API calls
2007-01-07 05:24:55 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Marcus Boerger
9103d6b5fe
- Implement ezstrndup()
2006-12-22 00:56:59 +00:00
Marcus Boerger
71a73834f4
- Make shorter and do not use problematic attribute
2006-12-20 20:59:18 +00:00
Marcus Boerger
2f7e1b8ef3
- Compilers mightnot like the zstr return,thus return void*
2006-12-20 20:49:01 +00:00
Marcus Boerger
89496ce1e6
- Implement zend_zstrndup()
2006-12-20 20:12:11 +00:00
Dmitry Stogov
b907cd59d5
Make zend_memory_peak_usage() to be avalable even without --enable-memory-limit
2006-10-12 06:47:04 +00:00
Dmitry Stogov
301efee1cf
Allow future extensibility without binary compatibility break
2006-10-05 08:09:12 +00:00
Dmitry Stogov
1f12ada0f7
Added is_zend_mm() to allow runtime check for zend memory manager
2006-09-14 08:55:17 +00:00
Dmitry Stogov
61d39cf1c1
Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system.
2006-07-25 13:41:08 +00:00
Dmitry Stogov
6687f0377b
New memory manager
2006-07-18 09:08:06 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
2e5d0a3a9d
WS
2006-02-21 08:00:39 +00:00
Andi Gutmans
5de7cc3194
- Update copyright notices to 2006
2006-01-04 23:54:12 +00:00
Marcus Boerger
fe273229b7
- This might already be defined
2005-08-13 00:37:08 +00:00
Antony Dovgal
9ab69a286b
fix typo noticed by Nuno
2005-08-12 19:02:22 +00:00
Andrei Zmievski
3abcd65161
*** empty log message ***
2005-08-12 17:29:21 +00:00
Andrei Zmievski
13a179d837
Add unicode macros for when Zend memory manager is disabled.
2005-08-12 17:14:21 +00:00
Andrei Zmievski
b80cb7bd2f
Unicode support
2005-08-11 23:35:03 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Derick Rethans
7a3dbcd1c4
- Added the --disable-zend-memory-manager switch to disable the Zend memory
...
manager.
#- I discussed this with Dmitry today - we found it useful.
2005-06-07 13:36:08 +00:00
foobar
355eefe5f9
- Nuke the code duplication
2005-04-07 20:15:21 +00:00
foobar
9356d7fc64
Fix build when USE_ZEND_ALLOC is 0
2005-04-07 16:22:15 +00:00
Zeev Suraski
779f5c5c19
Fix strdup() bug when USE_ZEND_ALLOC is disabled
2005-04-07 13:59:45 +00:00
Derick Rethans
4894978500
- Added missing defines.
...
#- I did say the patch was for 4.3 ;-)
2004-08-11 06:11:07 +00:00
Andi Gutmans
f3d6620f00
- Commit Derick's patch for allowing Zend to use regular libc memory
...
- allocation functions. Mainly useful in conjunction with tools such as
- valgrind which enables us to find bugs we might not find with the
- current memory managers boundary protection.
2004-08-07 00:45:34 +00:00
Andi Gutmans
138ef9a43e
- Improve performance by inlining zend_ptr_stack_n_push(). var_args can
...
usually not be inlined by compilers.
2004-07-30 20:16:40 +00:00
Moriyoshi Koizumi
182e93ab6e
- Add safe_pemalloc()
2004-07-20 21:55:57 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Andi Gutmans
eb2e53be99
- Improve performance of zend_alloc by stopping the size from being a bit
...
- field.
2004-07-15 22:59:54 +00:00
Andi Gutmans
02884a08f5
- More fixes
2004-05-25 10:09:46 +00:00
Andi Gutmans
6704ab4b35
- Make fix compile.
2004-05-25 09:25:22 +00:00
Andi Gutmans
db90fc4c90
- Fix memory leak in mem cache in conjunction with Zend MM. How come no one
...
- noticed this? :)
2004-05-25 08:33:11 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Sascha Schumann
169d43e5fa
cleanup & centralize ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC so that
...
they can be used by downstream applications
2003-08-28 14:53:02 +00:00
Sascha Schumann
f065aba3ba
Enable attribute((malloc)) for GCC 2.96
2003-08-28 11:55:39 +00:00
Sascha Schumann
6d7e56a0c8
GCC 2 does not know about malloc yet.
2003-08-28 06:17:05 +00:00
Sascha Schumann
cf1f6e3c4c
provide attribute((malloc)) where appropiate
2003-08-28 05:50:15 +00:00
Zeev Suraski
0dba58c373
Improve tracking
2003-08-18 21:17:26 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Sascha Schumann
04d2905fb5
add safe_emalloc
2003-04-24 03:35:06 +00:00
foobar
333406bdc2
- Added some missing CVS $Id$ tags, headers and footers.
2003-02-01 01:49:15 +00:00
Sebastian Bergmann
2c5d4b8c23
Bump year.
2002-12-31 15:59:15 +00:00