MCPcopy Create free account
hub / github.com/F-Stack/f-stack / doFastMemoryTest

Function doFastMemoryTest

app/redis-6.2.6/src/debug.c:1730–1745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1728}
1729
1730void doFastMemoryTest(void) {
1731#if defined(HAVE_PROC_MAPS)
1732 if (server.memcheck_enabled) {
1733 /* Test memory */
1734 serverLogRaw(LL_WARNING|LL_RAW, "\n------ FAST MEMORY TEST ------\n");
1735 killThreads();
1736 if (memtest_test_linux_anonymous_maps()) {
1737 serverLogRaw(LL_WARNING|LL_RAW,
1738 "!!! MEMORY ERROR DETECTED! Check your memory ASAP !!!\n");
1739 } else {
1740 serverLogRaw(LL_WARNING|LL_RAW,
1741 "Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.\n");
1742 }
1743 }
1744#endif /* HAVE_PROC_MAPS */
1745}
1746
1747/* Scans the (assumed) x86 code starting at addr, for a max of `len`
1748 * bytes, searching for E8 (callq) opcodes, and dumping the symbols

Callers 1

printCrashReportFunction · 0.85

Calls 3

serverLogRawFunction · 0.85
killThreadsFunction · 0.85

Tested by

no test coverage detected