Lines Matching defs:s_aHistory
233 } s_aHistory[1536];
234 RT_ZERO(s_aHistory);
238 i = RTRandAdvU32Ex(hRand, 0, RT_ELEMENTS(s_aHistory) - 1);
239 if (!s_aHistory[i].pv)
242 s_aHistory[i].cb = RTRandAdvU32Ex(hRand, 9, 1024);
243 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, uAlignment);
244 if (!s_aHistory[i].pv)
246 s_aHistory[i].cb = 9;
247 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, 0);
249 if (s_aHistory[i].pv)
250 memset(s_aHistory[i].pv, 0xbb, s_aHistory[i].cb);
254 RTHeapOffsetFree(Heap, s_aHistory[i].pv);
255 s_aHistory[i].pv = NULL;
261 for (i = 0; i < RT_ELEMENTS(s_aHistory) && RTHeapOffsetGetFreeSize(Heap) >= 256; i++)
262 if (!s_aHistory[i].pv)
264 s_aHistory[i].cb = RTRandAdvU32Ex(hRand, 256, 16384);
265 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, 0);
267 for (i = 0; i < RT_ELEMENTS(s_aHistory) && RTHeapOffsetGetFreeSize(Heap); i++)
269 if (!s_aHistory[i].pv)
271 s_aHistory[i].cb = 1;
272 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, 1);
274 if (s_aHistory[i].pv)
275 memset(s_aHistory[i].pv, 0x55, s_aHistory[i].cb);
282 for (i = 0; i < RT_ELEMENTS(s_aHistory); i++)
284 RTHeapOffsetFree(Heap, s_aHistory[i].pv);
285 s_aHistory[i].pv = NULL;
293 for (i = 0; i < RT_ELEMENTS(s_aHistory); i++)
295 RTHeapOffsetFree(Heap, s_aHistory[i].pv);
296 s_aHistory[i].pv = NULL;