summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_block_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove free_chunk APINikita Popov2021-02-231-30/+1
| | | | | | This API only works in very limited circumstances -- relying on it will invariably lead to leaks. The correct way to "free" something from the pool is to use the checkpoint API.
* Remove resize_chunk APINikita Popov2021-02-231-28/+0
| | | | | The last user has been dropped in the previous commit. This has never worked meaningfully in the first place.
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-09-131-0/+3
|\
| * Fix bug #78525Nikita Popov2019-09-131-0/+3
| | | | | | | | | | | | | | When calling free_result_buffers(), also free field metadata and restore the mempool state to what it was before any allocations have been made. Remove the mempool save/restore logic for the inner result set as this is now handled on a higher level.
* | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-07-311-1/+1
|\ \ | |/ | | | | | | * PHP-7.3: Fix 78213: Empty row pocket
| * Fix 78213: Empty row pocketChristoph M. Becker2019-07-311-1/+1
| | | | | | | | | | We have to ensure that we don't create an arena which is smaller than its header, regardless of the configured alignment.
| * Future-proof email addressesZeev Suraski2018-11-011-1/+1
| |
* | Add tracked arena allocatorNikita Popov2019-06-281-81/+15
| | | | | | | | | | | | | | | | | | | | Available under -DZEND_TRACK_ARENA_ALLOC. This will use the system allocator combined with arena checkpointing & release semantics and allows analyzing arena usage under asan/valgrind. I've sacrificed the duplicate arena implementation in mysqlnd, as the integration with mysqlnd alloc is not worth the code duplication to me.
* | Update and fix remaining year ranges (2019)Peter Kokot2019-02-081-1/+1
| | | | | | | | | | | | This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
* | Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | Future-proof email addresses...Zeev Suraski2018-11-011-1/+1
|/
* year++Xinchen Hui2018-01-021-1/+1
|
* Use single memory pool for result metadata and result set.Dmitry Stogov2017-11-151-0/+44
|
* Cleanup. Make difference between MYSQLND_ROW_BUFFER and ↵Dmitry Stogov2017-11-151-19/+19
| | | | MYSQLND_MEMORY_POOL_CHUNK (the last one is completely removed).
* Reimplemented MYSQLND_MEMORY_POOL to avoid allocations ouside of pool. Store ↵Dmitry Stogov2017-11-141-97/+89
| | | | all data related to result set in the pool.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-7.0'Andrey Hristov2016-03-161-4/+2
|\
| * Fix emails in headers. @mysql.com addresses are no more since many years.Andrey Hristov2016-03-161-3/+3
| |
* | Move free_chunk and resize_chunk into memory poolNikita Popov2016-02-221-8/+5
| | | | | | | | | | Drops 24 bytes from each chunk. For the example in bug #71468 it reduces memory usage by 30%.
* | Drop mysqlnd mempool refcountNikita Popov2016-02-221-7/+2
| | | | | | | | | | | | | | This member was no longer used. Also fix handling of from_pool in resize_chunk. It was setting pool to NULL instead of from_pool to FALSE.
* | Merge branch 'PHP-7.0'Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | MNDR:Andrey Hristov2015-11-121-2/+1
|/ / | | | | | | - move things out of mysqlnd_priv.h
* | Use PHP memory manager for mysqlnd memory pools.Dmitry Stogov2015-04-021-11/+11
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-7/+7
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* bump yearXinchen Hui2013-01-061-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* WS fixesAndrey Hristov2010-09-231-1/+0
|
* Handle gracefully OOM in mysqlnd_mempool_create and up the stackAndrey Hristov2010-05-031-7/+11
|
* Handle OOM in block_alloc_get_chunk, and also in the callerAndrey Hristov2010-05-031-22/+23
| | | | | in mysqlnd_wireprotocol.c
* Remove unused parameterAndrey Hristov2010-05-031-2/+6
|
* One more case to handle in case of OOM, in block_alloc_resize_chunkAndrey Hristov2010-05-031-1/+6
|
* Handle OOM when resizing blocks during data fetchAndrey Hristov2010-05-031-2/+8
|
* Remove dead code and add possibility to fine tune the size ofAndrey Hristov2010-04-221-31/+4
| | | | | a mempool (used for result sets).
* - Fix copyrightsFelipe Pena2010-04-201-2/+2
|
* CS + WS changesAndrey Hristov2010-04-151-1/+1
|
* export more functionality for phpize buildsAndrey Hristov2010-01-131-2/+2
|
* Revert mysqlnd to RC3 state after issues with pconnectsJohannes Schlüter2009-06-251-12/+9
|
* MFH:Andrey Hristov2009-06-171-8/+8
| | | | | | | | | | | | | | | | Fix two problems: - The value of mysqli_get_client_info() has been changed recently and did not include "mysqlnd" anymore thus the test suite was thinking the build is always libmysql. This did not kept the suite from running pconn tests - Going back to the libc allocator because the memory arena could be on a persistent connections. If the build is not debug there will be no error but the memory will be freed and in the second use of this pconn freed memory will be used - not good! For now the arena doesn't take an argument whether it should allocate persistently or not, thus persistent is safe for now. Johannes gave his +1 to commit this.
* MFH:Andrey Hristov2009-06-161-13/+14
| | | | | | | | | | Hardwire function call instead of using callbacks. We don't actually need callbacks, it was done for making 2 functions static, not to pollute the global functions space but that had its price of 8 bytes overheat per allocation, which is just too much. Also making the app member 32b instead of 64b, which should save additional 4 byte, to the total of 12 byte per allocation of a row buffer.
* MFH:Andrey Hristov2009-06-111-4/+6
| | | | | | Protect the code when variable is NULL, which should never happen, but anyway, you know about "never happens" :)
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH:Andrey Hristov2008-11-061-3/+3
| | | | | | Get rid of many defines (which simplifies the code a lot), as well as uint->unsigned int