Ignore:
Timestamp:
Oct 5, 2015, 4:31:53 PM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling back in r190450
https://bugs.webkit.org/show_bug.cgi?id=149727

The cause of the leak was VM shutdown, which happens in workers.

The fix is for CodeBlockSet to participate in lastChanceToFinalize,
since it's responsible for running CodeBlock destructors.

I ran the leaks tests locally and did not see any CodeBlock-related leaks.

Restored changesets:

"CodeBlock should be a GC object"
https://bugs.webkit.org/show_bug.cgi?id=149727
http://trac.webkit.org/changeset/190450

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGDesiredTransitions.h

    r190546 r190589  
    4545class DesiredTransition {
    4646public:
    47     DesiredTransition(CodeBlock*, ScriptExecutable*, Structure*, Structure*);
     47    DesiredTransition(CodeBlock*, CodeBlock* codeOriginOwner, Structure*, Structure*);
    4848
    4949    void reallyAdd(VM&, CommonData*);
     
    5353private:
    5454    CodeBlock* m_codeBlock;
    55     ScriptExecutable* m_codeOriginOwner;
     55    CodeBlock* m_codeOriginOwner;
    5656    Structure* m_oldStructure;
    5757    Structure* m_newStructure;
     
    6363    ~DesiredTransitions();
    6464
    65     void addLazily(CodeBlock*, ScriptExecutable*, Structure*, Structure*);
     65    void addLazily(CodeBlock*, CodeBlock* codeOriginOwner, Structure*, Structure*);
    6666    void reallyAdd(VM&, CommonData*);
    6767    void visitChildren(SlotVisitor&);
Note: See TracChangeset for help on using the changeset viewer.