Ignore:
Timestamp:
Jun 30, 2008, 4:21:43 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Cameron Zwarich.

Make RegisterFile really unmap memory on destruction.

This fixes run-webkit-tests --threaded, which ran out of address space in a few seconds.

  • VM/RegisterFile.cpp: (KJS::RegisterFile::~RegisterFile): Unmap all the memory, not just 1/4 of it.
  • kjs/JSGlobalObject.h: Don't include RegisterFile.h, so that changes to it don't make half of WebCore rebuild.
  • VM/Machine.h: Don't forward declare RegisterFile, as RegisterFile.h is included already.
  • VM/RegisterFile.h: (KJS::RegisterFile::RegisterFile): Assert that the allocation succeeded.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSGlobalObject.h

    r34842 r34886  
    2626#include "JSGlobalData.h"
    2727#include "JSVariableObject.h"
    28 #include "RegisterFile.h"
    2928#include <wtf/HashSet.h>
    3029#include <wtf/OwnPtr.h>
     
    5554    class RegExpConstructor;
    5655    class RegExpPrototype;
     56    class RegisterFile;
    5757    class RuntimeMethod;
    5858    class ScopeChain;
Note: See TracChangeset for help on using the changeset viewer.