⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 196896 in webkit


Ignore:
Timestamp:
Feb 21, 2016, 11:29:35 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

CodeBlock always visits its unlinked code twice
​https://bugs.webkit.org/show_bug.cgi?id=154494

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-02-21
Reviewed by Saam Barati.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::visitChildren):
The unlinked code is always visited in stronglyVisitStrongReferences.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r196891 r196896  
     12016-02-21  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        CodeBlock always visits its unlinked code twice
     4        https://bugs.webkit.org/show_bug.cgi?id=154494
     5
     6        Reviewed by Saam Barati.
     7
     8        * bytecode/CodeBlock.cpp:
     9        (JSC::CodeBlock::visitChildren):
     10        The unlinked code is always visited in stronglyVisitStrongReferences.
     11
    1122016-02-21  Brian Burg  <bburg@apple.com>
    213
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r195865 r196896  
    24862486    if (m_instructions.size())
    24872487        visitor.reportExtraMemoryVisited(m_instructions.size() * sizeof(Instruction) / m_instructions.refCount());
    2488 
    2489     visitor.append(&m_unlinkedCode);
    24902488
    24912489    stronglyVisitStrongReferences(visitor);
Note: See TracChangeset for help on using the changeset viewer.