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

Changeset 287003 in webkit


Ignore:
Timestamp:
Dec 13, 2021, 7:27:43 PM (5 years ago)
Author:
Russell Epstein
Message:

Revert "Revert r286382. rdar://problem/86408710"

This reverts commit r286996.

Location:
branches/safari-613.1.11-branch/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613.1.11-branch/Source/JavaScriptCore/ChangeLog

    r286996 r287003  
    1 2021-12-13  Alan Coon  <alancoon@apple.com>
    2 
    3         Revert r286382. rdar://problem/86408710
    4 
    512021-12-03  Keith Miller  <keith_miller@apple.com>
    62
  • branches/safari-613.1.11-branch/Source/JavaScriptCore/runtime/StructureChain.cpp

    r286996 r287003  
    5050    size_t bytes = Checked<size_t>(size) * sizeof(StructureID);
    5151    void* vector = vm.jsValueGigacageAuxiliarySpace().allocateNonVirtual(vm, bytes, nullptr, AllocationFailureMode::Assert);
     52    static_assert(!StructureID().bits(), "Make sure the value we're going to memcpy below matches the default StructureID");
    5253    memset(vector, 0, bytes);
    5354    StructureChain* chain = new (NotNull, allocateCell<StructureChain>(vm)) StructureChain(vm, vm.structureChainStructure.get(), static_cast<StructureID*>(vector));
Note: See TracChangeset for help on using the changeset viewer.