Commit 8518fc08 authored by marko's avatar marko

branches/zip: Remove unused function os_mem_alloc_nocache().

parent e2059457
...@@ -50,14 +50,6 @@ ulint ...@@ -50,14 +50,6 @@ ulint
os_proc_get_number(void); os_proc_get_number(void);
/*====================*/ /*====================*/
/******************************************************************** /********************************************************************
Allocates non-cacheable memory. */
UNIV_INTERN
void*
os_mem_alloc_nocache(
/*=================*/
/* out: allocated memory */
ulint n); /* in: number of bytes */
/********************************************************************
Allocates large pages memory. */ Allocates large pages memory. */
UNIV_INTERN UNIV_INTERN
void* void*
......
...@@ -60,28 +60,6 @@ os_proc_get_number(void) ...@@ -60,28 +60,6 @@ os_proc_get_number(void)
#endif #endif
} }
/********************************************************************
Allocates non-cacheable memory. */
UNIV_INTERN
void*
os_mem_alloc_nocache(
/*=================*/
/* out: allocated memory */
ulint n) /* in: number of bytes */
{
#ifdef __WIN__
void* ptr;
ptr = VirtualAlloc(NULL, n, MEM_COMMIT,
PAGE_READWRITE | PAGE_NOCACHE);
ut_a(ptr);
return(ptr);
#else
return(ut_malloc(n));
#endif
}
/******************************************************************** /********************************************************************
Allocates large pages memory. */ Allocates large pages memory. */
UNIV_INTERN UNIV_INTERN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment