| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
The last user has been dropped in the previous commit. This has
never worked meaningfully in the first place.
|
|
|
|
| |
Closes GH-4732.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix 78213: Empty row pocket
|
| |
| |
| |
| |
| | |
We have to ensure that we don't create an arena which is smaller than
its header, regardless of the configured alignment.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
This patch follows previous license year ranges updates. With new
approach source code files now have simplified headers with license
information without year ranges.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
| |
|
|
|
|
| |
MYSQLND_MEMORY_POOL_CHUNK (the last one is completely removed).
|
|
|
|
| |
all data related to result set in the pool.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
Drops 24 bytes from each chunk. For the example in bug #71468 it
reduces memory usage by 30%.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| |
| |
| | |
* PHP-7.0:
Update header to PHP Version 7
Happy new year (Update copyright to 2016)
Happy new year (Update copyright to 2016)
|
| |\
| | |
| | |
| | |
| | | |
* PHP-5.6:
Happy new year (Update copyright to 2016)
|
| | | |
|
| | | |
|
|/ /
| |
| |
| | |
- move things out of mysqlnd_priv.h
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
in mysqlnd_wireprotocol.c
|
| |
|
| |
|
| |
|
|
|
|
|
| |
a mempool (used for result sets).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Protect the code when variable is NULL, which should never happen, but
anyway, you know about "never happens" :)
|
| |
|
|
|
|
|
|
| |
Get rid of many defines (which simplifies the code a lot),
as well as uint->unsigned int
|