Ignore:
Timestamp:
Jan 25, 2018, 9:21:09 AM (8 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r227592.
https://bugs.webkit.org/show_bug.cgi?id=182110

it made ARM64 (Linux and iOS) crash (Requested by pizlo-mbp on
#webkit).

Reverted changeset:

"JSC GC should support TLCs (thread local caches)"
https://bugs.webkit.org/show_bug.cgi?id=181559
https://trac.webkit.org/changeset/227592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSArray.cpp

    r227592 r227609  
    11/*
    22 *  Copyright (C) 1999-2000 Harri Porten ([email protected])
    3  *  Copyright (C) 2003-2018 Apple Inc. All rights reserved.
     3 *  Copyright (C) 2003-2017 Apple Inc. All rights reserved.
    44 *  Copyright (C) 2003 Peter Kelly ([email protected])
    55 *  Copyright (C) 2006 Alexey Proskuryakov ([email protected])
     
    8282
    8383        unsigned vectorLength = Butterfly::optimalContiguousVectorLength(structure, initialLength);
    84         void* temp = vm.jsValueGigacageAuxiliarySpace.allocateNonVirtual(
    85             vm,
    86             Butterfly::totalSize(0, outOfLineStorage, true, vectorLength * sizeof(EncodedJSValue)),
    87             deferralContext, AllocationFailureMode::ReturnNull);
     84        void* temp = vm.jsValueGigacageAuxiliarySpace.allocateNonVirtual(Butterfly::totalSize(0, outOfLineStorage, true, vectorLength * sizeof(EncodedJSValue)), deferralContext, AllocationFailureMode::ReturnNull);
    8885        if (UNLIKELY(!temp))
    8986            return nullptr;
     
    10299        static const unsigned indexBias = 0;
    103100        unsigned vectorLength = ArrayStorage::optimalVectorLength(indexBias, structure, initialLength);
    104         void* temp = vm.jsValueGigacageAuxiliarySpace.allocateNonVirtual(
    105             vm,
    106             Butterfly::totalSize(indexBias, outOfLineStorage, true, ArrayStorage::sizeFor(vectorLength)),
    107             deferralContext, AllocationFailureMode::ReturnNull);
     101        void* temp = vm.jsValueGigacageAuxiliarySpace.allocateNonVirtual(Butterfly::totalSize(indexBias, outOfLineStorage, true, ArrayStorage::sizeFor(vectorLength)), deferralContext, AllocationFailureMode::ReturnNull);
    108102        if (UNLIKELY(!temp))
    109103            return nullptr;
     
    375369    } else {
    376370        size_t newSize = Butterfly::totalSize(0, propertyCapacity, true, ArrayStorage::sizeFor(desiredCapacity));
    377         newAllocBase = vm.jsValueGigacageAuxiliarySpace.allocateNonVirtual(
    378             vm, newSize, nullptr, AllocationFailureMode::ReturnNull);
     371        newAllocBase = vm.jsValueGigacageAuxiliarySpace.allocateNonVirtual(newSize, nullptr, AllocationFailureMode::ReturnNull);
    379372        if (!newAllocBase)
    380373            return false;
Note: See TracChangeset for help on using the changeset viewer.