-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CheckedPtr should require FastMalloc, Part 1
https://bugs.webkit.org/show_bug.cgi?id=271950 Reviewed by Ryosuke Niwa. This will enable zombie-mode CheckedPtr. It's also just good performance hygiene. * Source/WTF/wtf/CheckedPtr.h: (WTF::CheckedPtr::refIfNotNull): (WTF::CheckedPtr::derefIfNotNull): Use static_assert to verify use of FastMalloc. This is a good spot because it provides a complete type definition for T and it's our lowest level funnel. (Not enabled yet because there are a few complex cases left to work through.) (WTF::CheckedPtr::operator UnspecifiedBoolType const): Deleted. (WTF::CheckedPtr::unspecifiedBoolTypeInstance const): Deleted. Took the opportunity to remove these. 'explicit operator bool()' obsoletes them. * Source/WTF/wtf/FastMalloc.h: Capitalized our type name since that's WebKit style. Renamed to WTFIsFastAllocated to match the macro WTF_MAKE_FAST_ALLOCATED. * Source/WTF/wtf/StdLibExtras.h: (WTF::makeUnique): (WTF::makeUniqueWithoutRefCountedCheck): (WTF::makeUniqueWithoutFastMallocCheck): Adopted new typename for WTFIsFastAllocated and added a little more instruction to the error message. * Source/WTF/wtf/UniqueRef.h: (WTF::makeUniqueRef): Ditto * Source/bmalloc/bmalloc/IsoHeap.h: * Source/bmalloc/bmalloc/IsoHeapInlines.h: * Source/bmalloc/bmalloc/TZoneHeap.h: * Source/bmalloc/bmalloc/TZoneHeapInlines.h: Ditto * Source/WebCore/platform/ScrollableArea.cpp: * Source/WebCore/platform/graphics/TextRun.cpp: * Source/WebCore/rendering/LegacyRootInlineBox.cpp: * Source/WebCore/rendering/MarkedText.h: * Source/WebCore/rendering/RegionContext.h: Adopt FastMalloc. * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::adjustOverflowScrollbarContainerLayers): Fixed a type safety bug uncovered by removing the UnspecifiedBoolType operator. This code certainly did something before, but probably not what the author expected! :P * Source/WebCore/rendering/RenderObject.cpp: * Source/WebKit/Shared/WebPreferencesStore.h: Adopt FastMalloc. Canonical link: https://commits.webkit.org/276869@main
- Loading branch information
1 parent
4563c83
commit 1bcc994
Showing
16 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters