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

Function doFastMemoryTest

src/debug.cpp:1952–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1950}
1951
1952void doFastMemoryTest(void) {
1953#if defined(HAVE_PROC_MAPS)
1954 if (g_pserver->memcheck_enabled) {
1955 /* Test memory */
1956 serverLogRaw(LL_WARNING|LL_RAW, "\n------ FAST MEMORY TEST ------\n");
1957 killThreads();
1958 if (memtest_test_linux_anonymous_maps()) {
1959 serverLogRaw(LL_WARNING|LL_RAW,
1960 "!!! MEMORY ERROR DETECTED! Check your memory ASAP !!!\n");
1961 } else {
1962 serverLogRaw(LL_WARNING|LL_RAW,
1963 "Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.\n");
1964 }
1965 }
1966#endif /* HAVE_PROC_MAPS */
1967}
1968
1969/* Scans the (assumed) x86 code starting at addr, for a max of `len`
1970 * 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