uchar* my_large_malloc(PSI_memory_key key, size_t size, myf my_flags)
{
    uchar* ptr;
    DBUG_ENTER("my_large_malloc");

    if (my_use_large_pages && my_large_page_size)
    {
        if ((ptr = my_large_malloc_int(size, my_flags)) != NULL)
            DBUG_RETURN(ptr);
        if (my_flags & MY_WME)
            my_message_local(WARNING_LEVEL, "Using conventional memory pool"); /* purecov: inspected */
    }

    DBUG_RETURN(my_malloc(key, size, my_flags));
}
Beispiel #2
0
uchar* my_large_malloc(size_t size, myf my_flags)
{
  uchar* ptr;
  DBUG_ENTER("my_large_malloc");
  
  if (my_use_large_pages && my_large_page_size)
  {
    if ((ptr = my_large_malloc_int(size, my_flags)) != NULL)
        DBUG_RETURN(ptr);
    if (my_flags & MY_WME)
      fprintf(stderr, "Warning: Using conventional memory pool\n");
  }
      
  DBUG_RETURN(my_malloc_lock(size, my_flags));
}