Skip to content

Commit

Permalink
Merge pull request #1081 from Expensify/master
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
francoisl authored Jul 26, 2021
2 parents d76ef73 + 04237dd commit bb9e525
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions libstuff/sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -34447,12 +34447,6 @@ static int posixOpen(const char *zFile, int flags, int mode){
static int openDirectory(const char*, int*);
static int unixGetpagesize(void);

// For experimenting with munmap and it's slow performance at shutdown.
int munmapexp(void *addr, size_t length) {
// NOOP, skip the whole thing.
return 0;
}

/*
** Many system calls are accessed through pointer-to-functions so that
** they may be overridden at runtime to facilitate fault injection during
Expand Down Expand Up @@ -34579,7 +34573,7 @@ static struct unix_syscall {
#define osMmap ((void*(*)(void*,size_t,int,int,int,off_t))aSyscall[22].pCurrent)

#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
{ "munmap", (sqlite3_syscall_ptr)munmapexp, 0 },
{ "munmap", (sqlite3_syscall_ptr)munmap, 0 },
#else
{ "munmap", (sqlite3_syscall_ptr)0, 0 },
#endif
Expand Down

0 comments on commit bb9e525

Please sign in to comment.