mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Merge 10.2 into 10.3
This commit is contained in:
commit
e895041ba9
8 changed files with 13 additions and 11 deletions
|
@ -45,7 +45,7 @@ SET(_FILE_OFFSET_BITS 64)
|
|||
# Linux specific HUGETLB /large page support
|
||||
CHECK_SYMBOL_EXISTS(SHM_HUGETLB sys/shm.h HAVE_DECL_SHM_HUGETLB)
|
||||
IF(HAVE_DECL_SHM_HUGETLB)
|
||||
SET(HAVE_LARGE_PAGES 1)
|
||||
SET(HAVE_LINUX_LARGE_PAGES 1)
|
||||
SET(HUGETLB_USE_PROC_MEMINFO 1)
|
||||
SET(HAVE_LARGE_PAGE_OPTION 1)
|
||||
ENDIF()
|
||||
|
|
|
@ -392,7 +392,7 @@
|
|||
#cmakedefine HAVE_GCC_C11_ATOMICS 1
|
||||
#cmakedefine HAVE_SOLARIS_ATOMIC 1
|
||||
#cmakedefine HAVE_DECL_SHM_HUGETLB 1
|
||||
#cmakedefine HAVE_LARGE_PAGES 1
|
||||
#cmakedefine HAVE_LINUX_LARGE_PAGES 1
|
||||
#cmakedefine HUGETLB_USE_PROC_MEMINFO 1
|
||||
#cmakedefine NO_FCNTL_NONBLOCK 1
|
||||
#cmakedefine NO_ALARM 1
|
||||
|
|
|
@ -177,7 +177,7 @@ extern void *my_memdup(const void *from,size_t length,myf MyFlags);
|
|||
extern char *my_strdup(const char *from,myf MyFlags);
|
||||
extern char *my_strndup(const char *from, size_t length, myf MyFlags);
|
||||
|
||||
#ifdef HAVE_LARGE_PAGES
|
||||
#ifdef HAVE_LINUX_LARGE_PAGES
|
||||
extern uint my_get_large_page_size(void);
|
||||
extern uchar * my_large_malloc(size_t size, myf my_flags);
|
||||
extern void my_large_free(uchar *ptr);
|
||||
|
@ -185,7 +185,7 @@ extern void my_large_free(uchar *ptr);
|
|||
#define my_get_large_page_size() (0)
|
||||
#define my_large_malloc(A,B) my_malloc_lock((A),(B))
|
||||
#define my_large_free(A) my_free_lock((A))
|
||||
#endif /* HAVE_LARGE_PAGES */
|
||||
#endif /* HAVE_LINUX_LARGE_PAGES */
|
||||
|
||||
void my_init_atomic_write(void);
|
||||
#ifdef __linux__
|
||||
|
@ -243,7 +243,7 @@ extern int sf_leaking_memory; /* set to 1 to disable memleak detection */
|
|||
extern void (*proc_info_hook)(void *, const PSI_stage_info *, PSI_stage_info *,
|
||||
const char *, const char *, const unsigned int);
|
||||
|
||||
#ifdef HAVE_LARGE_PAGES
|
||||
#ifdef HAVE_LINUX_LARGE_PAGES
|
||||
extern my_bool my_use_large_pages;
|
||||
extern uint my_large_page_size;
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
-- source include/have_innodb.inc
|
||||
# Embedded server tests do not support restarting.
|
||||
-- source include/not_embedded.inc
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_C_COMPILER_ID MATCHES "SunPro")
|
|||
PROPERTIES COMPILE_FLAGS "${CMAKE_CURRENT_SOURCE_DIR}/my_timer_cycles.il")
|
||||
ENDIF()
|
||||
|
||||
IF(HAVE_LARGE_PAGES)
|
||||
IF(HAVE_LINUX_LARGE_PAGES)
|
||||
SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_largepage.c)
|
||||
ENDIF()
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include "mysys_priv.h"
|
||||
|
||||
#ifdef HAVE_LARGE_PAGES
|
||||
#ifdef HAVE_LINUX_LARGE_PAGES
|
||||
|
||||
#ifdef HAVE_SYS_IPC_H
|
||||
#include <sys/ipc.h>
|
||||
|
@ -163,4 +163,4 @@ my_bool my_large_free_int(uchar *ptr)
|
|||
}
|
||||
#endif /* HAVE_DECL_SHM_HUGETLB */
|
||||
|
||||
#endif /* HAVE_LARGE_PAGES */
|
||||
#endif /* HAVE_LINUX_LARGE_PAGES */
|
||||
|
|
|
@ -59,7 +59,7 @@ USED_MEM* my_once_root_block=0; /* pointer to first block */
|
|||
uint my_once_extra=ONCE_ALLOC_INIT; /* Memory to alloc / block */
|
||||
|
||||
/* from my_largepage.c */
|
||||
#ifdef HAVE_LARGE_PAGES
|
||||
#ifdef HAVE_LINUX_LARGE_PAGES
|
||||
my_bool my_use_large_pages= 0;
|
||||
uint my_large_page_size= 0;
|
||||
#endif
|
||||
|
|
|
@ -4386,7 +4386,7 @@ static int init_common_variables()
|
|||
DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname,
|
||||
server_version, SYSTEM_TYPE,MACHINE_TYPE));
|
||||
|
||||
#ifdef HAVE_LARGE_PAGES
|
||||
#ifdef HAVE_LINUX_LARGE_PAGES
|
||||
/* Initialize large page size */
|
||||
if (opt_large_pages)
|
||||
{
|
||||
|
@ -4401,7 +4401,7 @@ static int init_common_variables()
|
|||
else
|
||||
SYSVAR_AUTOSIZE(opt_large_pages, 0);
|
||||
}
|
||||
#endif /* HAVE_LARGE_PAGES */
|
||||
#endif /* HAVE_LINUX_LARGE_PAGES */
|
||||
#ifdef HAVE_SOLARIS_LARGE_PAGES
|
||||
#define LARGE_PAGESIZE (4*1024*1024) /* 4MB */
|
||||
#define SUPER_LARGE_PAGESIZE (256*1024*1024) /* 256MB */
|
||||
|
|
Loading…
Add table
Reference in a new issue