[webkit-changes] [WebKit/WebKit] 3fca1b: [bmalloc] Replace ssize_t with ptrdiff_t for porta...
Basuke Suzuki
noreply at github.com
Thu Apr 27 15:52:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3fca1b37291f10c1bc0b672f96542994873c8f4c
https://github.com/WebKit/WebKit/commit/3fca1b37291f10c1bc0b672f96542994873c8f4c
Author: Basuke Suzuki <basuke.suzuki at sony.com>
Date: 2023-04-27 (Thu, 27 Apr 2023)
Changed paths:
M Source/bmalloc/bmalloc/Heap.cpp
M Source/bmalloc/bmalloc/Heap.h
Log Message:
-----------
[bmalloc] Replace ssize_t with ptrdiff_t for portability.
https://bugs.webkit.org/show_bug.cgi?id=256010
Reviewed by Yusuke Suzuki.
This is the patch for Windows bmalloc implementation part 4 of N.
In Heap, ssize_t is used to pass +/- delta. Actually ssize_t is from posix and not portable.
Let's use ptrdiff_t instead for better portability.
* Source/bmalloc/bmalloc/Heap.cpp:
(bmalloc::Heap::adjustStat):
(bmalloc::Heap::logStat):
(bmalloc::Heap::adjustFreeableMemory):
(bmalloc::Heap::adjustFootprint):
* Source/bmalloc/bmalloc/Heap.h:
Canonical link: https://commits.webkit.org/263472@main
More information about the webkit-changes
mailing list