Changeset 15507 for S60/trunk/MemoryManager
- Timestamp:
- 07/18/06 13:22:45 (2 years ago)
- Location:
- S60/trunk/MemoryManager
- Files:
-
- 3 modified
-
ChangeLog (modified) (1 diff)
-
Src/Allocator.cpp (modified) (2 diffs)
-
Src/fast_malloc.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
S60/trunk/MemoryManager/ChangeLog
r15432 r15507 1 2006-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 1 12 2006-06-04 Zalan <zalan.bujtas@nokia.com> 2 13 -
S60/trunk/MemoryManager/Src/Allocator.cpp
r14719 r15507 137 137 TBool CAllocator::PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& /*aCheckerName*/ ) 138 138 { 139 TBool ret = EFalse;140 139 iNestedChecks++; 141 140 … … 193 192 194 193 iIsCollecting = ETrue; 195 TUint collected = 0;196 194 for( TInt i=0; i<iCollectors.Count(); ++i ) 197 195 { -
S60/trunk/MemoryManager/Src/fast_malloc.cpp
r14549 r15507 4804 4804 TInt check_system_heap() 4805 4805 { 4806 TInt block;4807 4806 TInt freeMem = 0; //User::Available( block ); 4808 4807 … … 4870 4869 4871 4870 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() ); 4875 4874 4876 4875 return oldmark; … … 4932 4931 void log_abort( const char* file, unsigned int line) 4933 4932 { 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 ); 4938 4937 } 4939 4938 … … 4981 4980 safetop = (void*)( (int)safetop + req ); 4982 4981 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() ); 4986 4985 } 4987 4986 else … … 5008 5007 5009 5008 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() ); 5013 5012 } 5014 5013 }