Changeset 96936 in webkit for trunk/Source/JavaScriptCore/wtf


Ignore:
Timestamp:
Oct 7, 2011, 7:49:45 AM (14 years ago)
Author:
[email protected]
Message:

[JSC] Disable ThreadRestrictionVerifier for JIT ExecutableMemoryHandles
https://bugs.webkit.org/show_bug.cgi?id=69599

Reviewed by Sam Weinig.

DFG JIT manipulates MetaAllocatorHandles across threads, eg in
allocating JITCode buffers on a background thread to execute a
proxy autoconfiguration PAC file but garbage collecting it in
response to allocation on the main thread. Disabling
ThreadRestrictionVerification until there is a verification scheme
that understands this handoff.

  • wtf/MetaAllocator.cpp:

(WTF::MetaAllocator::allocate):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/MetaAllocator.cpp

    r95901 r96936  
    154154    m_numAllocations++;
    155155#endif
    156     return adoptRef(new MetaAllocatorHandle(this, start, sizeInBytes));
     156
     157    MetaAllocatorHandle* handle = new MetaAllocatorHandle(this, start, sizeInBytes);
     158    // FIXME: Implement a verifier scheme that groks MetaAllocatorHandles
     159    handle->deprecatedTurnOffVerifier();
     160
     161    return adoptRef(handle);
    157162}
    158163
Note: See TracChangeset for help on using the changeset viewer.