mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
Merge branch 'system-alloc' into 'master'
gmem: clarify that g_malloc always uses the system allocator See merge request GNOME/glib!1099
This commit is contained in:
commit
96a1e35e62
@ -77,6 +77,9 @@ static GMemVTable glib_mem_vtable = {
|
|||||||
* new with delete and new[] with delete[]. Otherwise bad things can happen,
|
* new with delete and new[] with delete[]. Otherwise bad things can happen,
|
||||||
* since these allocators may use different memory pools (and new/delete call
|
* since these allocators may use different memory pools (and new/delete call
|
||||||
* constructors and destructors).
|
* constructors and destructors).
|
||||||
|
*
|
||||||
|
* Since GLib 2.46 g_malloc() is hardcoded to always use the system malloc
|
||||||
|
* implementation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* --- functions --- */
|
/* --- functions --- */
|
||||||
@ -457,7 +460,7 @@ g_try_realloc_n (gpointer mem,
|
|||||||
*
|
*
|
||||||
* Checks whether the allocator used by g_malloc() is the system's
|
* Checks whether the allocator used by g_malloc() is the system's
|
||||||
* malloc implementation. If it returns %TRUE memory allocated with
|
* malloc implementation. If it returns %TRUE memory allocated with
|
||||||
* malloc() can be used interchangeable with memory allocated using g_malloc().
|
* malloc() can be used interchangeably with memory allocated using g_malloc().
|
||||||
* This function is useful for avoiding an extra copy of allocated memory returned
|
* This function is useful for avoiding an extra copy of allocated memory returned
|
||||||
* by a non-GLib-based API.
|
* by a non-GLib-based API.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user