Changeset 18603 in vbox for trunk/src/VBox
- Timestamp:
- Apr 1, 2009 3:44:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp
r18561 r18603 460 460 static PRTHEAPSIMPLEBLOCK rtHeapSimpleAllocBlock(PRTHEAPSIMPLEINTERNAL pHeapInt, size_t cb, size_t uAlignment) 461 461 { 462 /*463 * Search for a fitting block from the lower end of the heap.464 */465 462 PRTHEAPSIMPLEBLOCK pRet = NULL; 466 463 PRTHEAPSIMPLEFREE pFree; 464 467 465 #ifdef RTHEAPSIMPLE_STRICT 468 466 rtHeapSimpleAssertAll(pHeapInt); 469 467 #endif 470 468 469 /* 470 * Search for a fitting block from the lower end of the heap. 471 */ 471 472 for (pFree = pHeapInt->pFreeHead; 472 473 pFree; … … 675 676 { 676 677 PRTHEAPSIMPLEFREE pFree = (PRTHEAPSIMPLEFREE)pBlock; 678 PRTHEAPSIMPLEFREE pLeft; 679 PRTHEAPSIMPLEFREE pRight; 680 681 #ifdef RTHEAPSIMPLE_STRICT 682 rtHeapSimpleAssertAll(pHeapInt); 683 #endif 677 684 678 685 /* … … 680 687 * of us (both lists are sorted by address). 681 688 */ 682 PRTHEAPSIMPLEFREE pLeft = NULL; 683 PRTHEAPSIMPLEFREE pRight = NULL; 684 #ifdef RTHEAPSIMPLE_STRICT 685 rtHeapSimpleAssertAll(pHeapInt); 686 #endif 687 689 pLeft = NULL; 690 pRight = NULL; 688 691 if (pHeapInt->pFreeTail) 689 692 {
Note:
See TracChangeset
for help on using the changeset viewer.