fix a crash in PerformanceTest:AllocTest