Skip to content

Commit

Permalink
build fix: add #if defined(USE_JEMALLOC) for static dismiss functions
Browse files Browse the repository at this point in the history
Signed-off-by: Rain Valentine <[email protected]>
  • Loading branch information
SoftlyRaining committed Feb 4, 2025
1 parent be19659 commit 019d387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ void dismissSds(sds s) {
sdsfree(s);
}

#if defined(USE_JEMALLOC) && defined(__linux__)
/* See dismissObject() */
static void dismissStringObject(robj *o) {
if (o->encoding == OBJ_ENCODING_RAW) {
Expand Down Expand Up @@ -697,6 +698,7 @@ static void dismissStreamObject(robj *o, size_t size_hint) {
raxStop(&ri);
}
}
#endif

/* When creating a snapshot in a fork child process, the main process and child
* process share the same physical memory pages, and if / when the parent
Expand Down

0 comments on commit 019d387

Please sign in to comment.