mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge bb-10.2-ext into 10.3
This commit is contained in:
@@ -27,11 +27,13 @@ class Sql_alloc
|
||||
public:
|
||||
static void *operator new(size_t size) throw ()
|
||||
{
|
||||
return thd_alloc(thd_get_current_thd(), size);
|
||||
DBUG_ASSERT(size < UINT_MAX32);
|
||||
return thd_alloc(thd_get_current_thd(), uint(size));
|
||||
}
|
||||
static void *operator new[](size_t size) throw ()
|
||||
{
|
||||
return thd_alloc(thd_get_current_thd(), size);
|
||||
DBUG_ASSERT(size < UINT_MAX32);
|
||||
return thd_alloc(thd_get_current_thd(), uint(size));
|
||||
}
|
||||
static void *operator new[](size_t size, MEM_ROOT *mem_root) throw ()
|
||||
{ return alloc_root(mem_root, size); }
|
||||
|
Reference in New Issue
Block a user