Show
Ignore:
Timestamp:
07/18/06 13:22:45 (2 years ago)
Author:
brmorris
Message:

2006-07-17 Bradley <bradley.morrison@nokia.com>

Reviewed by Sachin/Zalan.

Various fixes - see ChangeLogs for details.
Part 1 of 4.

Location:
S60/trunk/MemoryManager
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/MemoryManager/ChangeLog

    r15432 r15507  
     12006-07-18  brmorris  <bradley.morrison@nokia.com> 
     2 
     3        Reviewed by Zala/Sachin. 
     4 
     5        * Src/Allocator.cpp: Removed unused vars 
     6        (CAllocator::PreCheck): 
     7        (CAllocator::CollectMemory): 
     8        * Src/StopScheduler.cpp: Removed unused vars 
     9        * Src/fast_malloc.cpp: Removed unused vars 
     10        (check_system_heap): 
     11 
    1122006-06-04  Zalan  <zalan.bujtas@nokia.com> 
    213 
  • S60/trunk/MemoryManager/Src/Allocator.cpp

    r14719 r15507  
    137137TBool CAllocator::PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& /*aCheckerName*/ ) 
    138138    { 
    139     TBool ret = EFalse; 
    140139    iNestedChecks++; 
    141140 
     
    193192 
    194193    iIsCollecting = ETrue; 
    195     TUint collected = 0; 
    196194    for( TInt i=0; i<iCollectors.Count(); ++i ) 
    197195      { 
  • S60/trunk/MemoryManager/Src/fast_malloc.cpp

    r14549 r15507  
    48044804TInt check_system_heap() 
    48054805{ 
    4806     TInt block; 
    48074806    TInt freeMem = 0; //User::Available( block ); 
    48084807     
     
    48704869             
    48714870            MEM_LOGF( _L8("WaterMark: %d  SafeTop: %d ChunkTop: %d"),  
    4872                   (size_t)watermark-(size_t)rchunk.Base(),  
    4873                   (size_t)safetop-(size_t)rchunk.Base(),  
    4874                   rchunk.Top() ); 
     4871                (size_t)watermark-(size_t)rchunk.Base(),  
     4872                (size_t)safetop-(size_t)rchunk.Base(),  
     4873                rchunk.Top() ); 
    48754874         
    48764875            return oldmark; 
     
    49324931void log_abort( const char* file, unsigned int line) 
    49334932{ 
    4934         TPtrC8 des( (unsigned char*)file, strlen(file) ); 
    4935         MEM_LOGF( _L8("Abort at %S line %d"), des, line ); 
    4936         User::After( 500000 ); 
    4937         User::Panic( _L("fast_malloc"), 0 ); 
     4933  TPtrC8 des( (unsigned char*)file, strlen(file) ); 
     4934  MEM_LOGF( _L8("Abort at %S line %d"), des, line ); 
     4935  User::After( 500000 ); 
     4936  User::Panic( _L("fast_malloc"), 0 ); 
    49384937} 
    49394938 
     
    49814980        safetop = (void*)( (int)safetop + req ); 
    49824981        MEM_LOGF( _L8("precheck... WaterMark: %d  SafeTop: %d ChunkTop: %d"),  
    4983                                 (size_t)watermark-(size_t)rchunk.Base(),  
    4984                                 (size_t)safetop-(size_t)rchunk.Base(),  
    4985                                 rchunk.Top() ); 
     4982              (size_t)watermark-(size_t)rchunk.Base(),  
     4983              (size_t)safetop-(size_t)rchunk.Base(),  
     4984              rchunk.Top() ); 
    49864985    } 
    49874986    else 
     
    50085007         
    50095008        MEM_LOGF( _L8("postcheck... WaterMark: %d  SafeTop: %d ChunkTop: %d"),  
    5010                         (size_t)watermark-(size_t)rchunk.Base(),  
    5011                         (size_t)safetop-(size_t)rchunk.Base(),  
    5012                         rchunk.Top() ); 
     5009            (size_t)watermark-(size_t)rchunk.Base(),  
     5010            (size_t)safetop-(size_t)rchunk.Base(),  
     5011            rchunk.Top() ); 
    50135012    } 
    50145013}