| 1950 | } |
| 1951 | |
| 1952 | void 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 |
no test coverage detected