| 21 | } |
| 22 | |
| 23 | static void AddTrace(tcmalloc::StackTraceTable* table, |
| 24 | const tcmalloc::StackTrace& t) { |
| 25 | // Normally we'd need this lock, but since the test is single-threaded |
| 26 | // we don't. I comment it out on windows because the DLL-decl thing |
| 27 | // is really annoying in this case. |
| 28 | #ifndef _MSC_VER |
| 29 | SpinLockHolder h(tcmalloc::Static::pageheap_lock()); |
| 30 | #endif |
| 31 | table->AddTrace(t); |
| 32 | } |
| 33 | |
| 34 | int main(int argc, char **argv) { |
| 35 | tcmalloc::StackTraceTable table; |
no outgoing calls
no test coverage detected