Changeset 122614 in webkit


Ignore:
Timestamp:
Jul 13, 2012 12:05:21 PM (12 years ago)
Author:
haraken@chromium.org
Message:

[V8] String wrappers should be marked Independent
https://bugs.webkit.org/show_bug.cgi?id=91251

Reviewed by Adam Barth.

Currently V8 String wrappers are not marked Independent.
By marking them Independent, they can be reclaimed by the scavenger GC.

I tried to find some cases where this change reduces memory usage,
but couldn't due to sensitive behavior of GC.

No tests. No change in behavior.

  • bindings/v8/V8Binding.cpp:

(WebCore::StringCache::v8ExternalStringSlow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122610 r122614  
     12012-07-13  Kentaro Hara  <haraken@chromium.org>
     2
     3        [V8] String wrappers should be marked Independent
     4        https://bugs.webkit.org/show_bug.cgi?id=91251
     5
     6        Reviewed by Adam Barth.
     7
     8        Currently V8 String wrappers are not marked Independent.
     9        By marking them Independent, they can be reclaimed by the scavenger GC.
     10
     11        I tried to find some cases where this change reduces memory usage,
     12        but couldn't due to sensitive behavior of GC.
     13
     14        No tests. No change in behavior.
     15
     16        * bindings/v8/V8Binding.cpp:
     17        (WebCore::StringCache::v8ExternalStringSlow):
     18
    1192012-07-13  Peter Beverloo  <peter@chromium.org>
    220
  • trunk/Source/WebCore/bindings/v8/V8Binding.cpp

    r122600 r122614  
    494494
    495495    stringImpl->ref();
     496    wrapper.MarkIndependent();
    496497    wrapper.MakeWeak(stringImpl, cachedStringCallback);
    497498    m_stringCache.set(stringImpl, *wrapper);
Note: See TracChangeset for help on using the changeset viewer.