| 1728 | } |
| 1729 | |
| 1730 | void 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 |
no test coverage detected