mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-08 00:09:31 +03:00
bump version for further development
This commit is contained in:
commit
9c544aba41
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
set(mi_version_major 2)
|
set(mi_version_major 2)
|
||||||
set(mi_version_minor 1)
|
set(mi_version_minor 1)
|
||||||
set(mi_version_patch 0)
|
set(mi_version_patch 1)
|
||||||
set(mi_version ${mi_version_major}.${mi_version_minor})
|
set(mi_version ${mi_version_major}.${mi_version_minor})
|
||||||
|
|
||||||
set(PACKAGE_VERSION ${mi_version})
|
set(PACKAGE_VERSION ${mi_version})
|
||||||
|
|
|
@ -8,7 +8,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#ifndef MIMALLOC_H
|
#ifndef MIMALLOC_H
|
||||||
#define MIMALLOC_H
|
#define MIMALLOC_H
|
||||||
|
|
||||||
#define MI_MALLOC_VERSION 210 // major + 2 digits minor
|
#define MI_MALLOC_VERSION 211 // major + 2 digits minor
|
||||||
|
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
// Compiler specific attributes
|
// Compiler specific attributes
|
||||||
|
|
|
@ -79,7 +79,7 @@ static int mi_prim_access(const char *fpath, int mode) {
|
||||||
#elif !defined(__APPLE__) // avoid unused warnings
|
#elif !defined(__APPLE__) // avoid unused warnings
|
||||||
|
|
||||||
static int mi_prim_open(const char* fpath, int open_flags) {
|
static int mi_prim_open(const char* fpath, int open_flags) {
|
||||||
return open(fpath,open_flags,mode);
|
return open(fpath,open_flags);
|
||||||
}
|
}
|
||||||
static ssize_t mi_prim_read(int fd, void* buf, size_t bufsize) {
|
static ssize_t mi_prim_read(int fd, void* buf, size_t bufsize) {
|
||||||
return read(fd,buf,bufsize);
|
return read(fd,buf,bufsize);
|
||||||
|
@ -391,7 +391,7 @@ int _mi_prim_reset(void* start, size_t size) {
|
||||||
err = unix_madvise(start, size, MADV_DONTNEED);
|
err = unix_madvise(start, size, MADV_DONTNEED);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int err = unix_madvise(start, csize, MADV_DONTNEED);
|
int err = unix_madvise(start, size, MADV_DONTNEED);
|
||||||
#endif
|
#endif
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue