Changeset 34790 in webkit for trunk/JavaScriptCore/kjs/Shell.cpp


Ignore:
Timestamp:
Jun 24, 2008, 11:34:06 PM (17 years ago)
Author:
[email protected]
Message:

2008-06-24 Cameron Zwarich <[email protected]>

Reviewed by Alexey Proskuryakov.

Make the JavaScript shell collect the heap from main() instead of
jscmain() to suppress leak messages in debug builds.

  • kjs/Shell.cpp: (main): (jscmain):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/Shell.cpp

    r34757 r34790  
    298298    TRY
    299299        res = jscmain(argc, argv);
     300#ifndef NDEBUG
     301        JSLock lock;
     302        JSGlobalData::threadInstance().heap->collect();
     303#endif
    300304    EXCEPT(res = 3)
    301305    return res;
     
    452456        runInteractive(globalObject);
    453457
    454 #ifndef NDEBUG
    455     globalObject->globalData()->heap->collect();
    456 #endif
    457 
    458458    return success ? 0 : 3;
    459459}
Note: See TracChangeset for help on using the changeset viewer.