int TestMain () { scalable_allocation_mode(USE_HUGE_PAGES, 0); #if !_XBOX && !__TBB_WIN8UI_SUPPORT putenv((char*)"TBB_MALLOC_USE_HUGE_PAGES=yes"); #endif checkNoHugePages(); // backreference requires that initialization was done if(!isMallocInitialized()) doInitialization(); checkNoHugePages(); // to succeed, leak detection must be the 1st memory-intensive test TestBackRef(); TestPools(); TestBackend(); #if MALLOC_CHECK_RECURSION for( int p=MaxThread; p>=MinThread; --p ) { TestStartupAlloc::initBarrier( p ); NativeParallelFor( p, TestStartupAlloc() ); ASSERT(!firstStartupBlock, "Startup heap memory leak detected"); } #endif TestLargeObjectCache(); TestObjectRecognition(); TestBitMask(); return Harness::Done; }
int TestMain () { // backreference requires that initialization was done if(!isMallocInitialized()) doInitialization(); // to succeed, leak detection must be the 1st memory-intensive test TestBackRef(); TestPools(); TestBackend(); #if MALLOC_CHECK_RECURSION for( int p=MaxThread; p>=MinThread; --p ) { TestStartupAlloc::initBarrier( p ); NativeParallelFor( p, TestStartupAlloc() ); ASSERT(!firstStartupBlock, "Startup heap memory leak detected"); } #endif TestLargeObjectCache(); TestObjectRecognition(); TestBitMask(); return Harness::Done; }