Ignore:
Timestamp:
Jul 28, 2019, 9:31:04 PM (6 years ago)
Author:
[email protected]
Message:

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

"Causes PLT5 regression on some machines" (Requested by mlam|a
on #webkit).

Reverted changeset:

"Add crash diagnostics for debugging unexpected zapped cells."
https://bugs.webkit.org/show_bug.cgi?id=200149
https://trac.webkit.org/changeset/247886

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/HeapCell.h

    r247886 r247900  
    11/*
    2  * Copyright (C) 2016-2019 Apple Inc. All rights reserved.
     2 * Copyright (C) 2016-2018 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    4848    HeapCell() { }
    4949   
    50     // We're intentionally only zapping the bits for the structureID and leaving
    51     // the rest of the cell header bits intact for crash analysis uses.
    52     enum ZapReason : int8_t { Unspecified, Destruction, StopAllocating };
    53     void zap(ZapReason reason)
    54     {
    55         uint32_t* cellWords = bitwise_cast<uint32_t*>(this);
    56         cellWords[0] = 0;
    57         // Leaving cellWords[1] alone for crash analysis if needed.
    58         cellWords[2] = reason;
    59     }
    60     bool isZapped() const { return !*bitwise_cast<const uint32_t*>(this); }
     50    void zap() { *reinterpret_cast_ptr<uintptr_t**>(this) = 0; }
     51    bool isZapped() const { return !*reinterpret_cast_ptr<uintptr_t* const*>(this); }
    6152
    6253    bool isLive();
Note: See TracChangeset for help on using the changeset viewer.