Ignore:
Timestamp:
Oct 27, 2008, 1:37:08 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-27 Geoffrey Garen <[email protected]>

Reviewed by Sam Weinig.


Added a mutex around the SamplingTool's ScopeNode* map, to solve a crash
when sampling the v8 tests.

  • VM/SamplingTool.cpp: (JSC::SamplingTool::run): (JSC::SamplingTool::notifyOfScope):
  • VM/SamplingTool.h: Since new ScopeNodes can be created after the SamplingTools has begun sampling, reads and writes to / from the map need to be synchronized. Shark says this doesn't measurably increase sampling overhead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/SamplingTool.h

    r37893 r37901  
    203203        unsigned m_opcodeSamples[numOpcodeIDs];
    204204        unsigned m_opcodeSamplesInCTIFunctions[numOpcodeIDs];
     205       
     206        Mutex m_scopeSampleMapMutex;
    205207        OwnPtr<ScopeSampleRecordMap> m_scopeSampleMap;
    206208    };
Note: See TracChangeset for help on using the changeset viewer.