webengine/osswebengine/MemoryManager/Src/fast_malloc.cpp
changeset 26 cb62a4f66ebe
parent 1 7c90e6132015
child 46 30342f40acbf
equal deleted inserted replaced
25:0ed94ceaa377 26:cb62a4f66ebe
   446 */
   446 */
   447 #include <e32base.h>
   447 #include <e32base.h>
   448 #include <e32hal.h>
   448 #include <e32hal.h>
   449 #include <hal.h>
   449 #include <hal.h>
   450 
   450 
   451 #include "MemoryManager.h"
   451 #include <MemoryManager.h>
   452 
   452 
   453 //#define OOM_LOGGING
   453 //#define OOM_LOGGING
   454 #include "MemoryLogger.h"
   454 #include "MemoryLogger.h"
   455 
   455 
   456 /*
   456 /*
  5379 // This is not a crash-proof solution, because it
  5379 // This is not a crash-proof solution, because it
  5380 // is difficult to dictate the deleteing order of
  5380 // is difficult to dictate the deleteing order of
  5381 // global data and if closing util is not the last
  5381 // global data and if closing util is not the last
  5382 // one to be deleted, it will crash.  Luckly enough
  5382 // one to be deleted, it will crash.  Luckly enough
  5383 // , it seems to be working fine and no crash so far.
  5383 // , it seems to be working fine and no crash so far.
       
  5384 /*
  5384 struct ChunkClosingUtil
  5385 struct ChunkClosingUtil
  5385 {
  5386 {
  5386     ~ChunkClosingUtil()     { rchunk.Close(); }
  5387     ~ChunkClosingUtil()     { rchunk.Close(); }
  5387 };
  5388 };
  5388 
       
  5389 static ChunkClosingUtil __gx_closing;
  5389 static ChunkClosingUtil __gx_closing;
  5390 
  5390 */
  5391 /* -----------------------------------------------------------------------
  5391 /* -----------------------------------------------------------------------
  5392 History:
  5392 History:
  5393     C2.8.2 Sun Jun 12 16:01:10 2005  Doug Lea  (dl at gee)
  5393     C2.8.2 Sun Jun 12 16:01:10 2005  Doug Lea  (dl at gee)
  5394       * Fix memalign brace error.
  5394       * Fix memalign brace error.
  5395 
  5395