MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / malloc_read_fd

Function malloc_read_fd

deps/jemalloc/include/jemalloc/internal/malloc_io.h:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static inline ssize_t
89malloc_read_fd(int fd, void *buf, size_t count) {
90#if defined(JEMALLOC_USE_SYSCALL) && defined(SYS_read)
91 long result = syscall(SYS_read, fd, buf, count);
92#else
93 ssize_t result = read(fd, buf,
94#ifdef _WIN32
95 (unsigned int)
96#endif
97 count);
98#endif
99 return (ssize_t)result;
100}
101
102#endif /* JEMALLOC_INTERNAL_MALLOC_IO_H */

Callers 3

prof_dump_mapsFunction · 0.85
os_overcommits_procFunction · 0.85
init_thp_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected