webengine/osswebengine/MemoryManager/Src/fast_malloc.cpp
changeset 65 5bfc169077b2
parent 37 cb62a4f66ebe
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
   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 /*
       
  5385 struct ChunkClosingUtil
  5384 struct ChunkClosingUtil
  5386 {
  5385 {
  5387     ~ChunkClosingUtil()     { rchunk.Close(); }
  5386     ~ChunkClosingUtil()     { rchunk.Close(); }
  5388 };
  5387 };
       
  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