Changeset 50171 in webkit


Ignore:
Timestamp:
Oct 27, 2009 2:04:20 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-27 Carol Szabo <carol.szabo@nokia.com>

Reviewed by Darin Adler.

Give an ability to WebKit to free statically allocated pointers
before quit.
https://bugs.webkit.org/show_bug.cgi?id=27980

No new tests for this as the change does not affect WebKit
functionality, but only memory usage.

  • JavaScriptCore/wtf/StdLibExtras.h: Allowed for the override of DEFINE_STATIC_LOCAL via compiler commandline options or elsewhere in the code. Useful for implementing custom builds that free resources allocated via DEFINE_STATIC_LOCAL.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/StdLibExtras.h

    r46598 r50171  
    3333//  it is leaked so that its destructors are not called at exit. Using this
    3434//  macro also allows workarounds a compiler bug present in Apple's version of GCC 4.0.1.
     35#ifndef DEFINE_STATIC_LOCAL
    3536#if COMPILER(GCC) && defined(__APPLE_CC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 1
    3637#define DEFINE_STATIC_LOCAL(type, name, arguments) \
     
    4041#define DEFINE_STATIC_LOCAL(type, name, arguments) \
    4142    static type& name = *new type arguments
     43#endif
    4244#endif
    4345
  • trunk/WebCore/ChangeLog

    r50170 r50171  
     12009-10-27  Carol Szabo  <carol.szabo@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Give an ability to WebKit to free statically allocated pointers
     6        before quit.
     7        https://bugs.webkit.org/show_bug.cgi?id=27980
     8
     9        No new tests for this as the change does not affect WebKit
     10        functionality, but only memory usage.
     11
     12        * JavaScriptCore/wtf/StdLibExtras.h:
     13        Allowed for the override of DEFINE_STATIC_LOCAL via compiler
     14        commandline options or elsewhere in the code. Useful for
     15        implementing custom builds that free resources allocated via
     16        DEFINE_STATIC_LOCAL.
     17
    1182009-10-27  Dumitru Daniliuc  <dumi@chromium.org>
    219
Note: See TracChangeset for help on using the changeset viewer.