Changeset 282561 in webkit


Ignore:
Timestamp:
Sep 16, 2021 11:07:01 AM (3 years ago)
Author:
fpizlo@apple.com
Message:

Stub out the footprint() API when libpas is in use
https://bugs.webkit.org/show_bug.cgi?id=230362

Reviewed by Yusuke Suzuki.

The Gigacage's footprint API is called from some test-only code in JSC, evidently to no
meaningful effect. It's possible for libpas to support such an API but it currently
doesn't. So, stub it out. To my knowledge we don't actually use this API for anything
other than tests, and even tests seem to use it only in the sense that they expect to be
able to call it without crashing.

  • bmalloc/Gigacage.cpp:

(Gigacage::footprint):

Location:
trunk/Source/bmalloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r282556 r282561  
     12021-09-16  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Stub out the footprint() API when libpas is in use
     4        https://bugs.webkit.org/show_bug.cgi?id=230362
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        The Gigacage's footprint API is called from some test-only code in JSC, evidently to no
     9        meaningful effect. It's possible for libpas to support such an API but it currently
     10        doesn't. So, stub it out. To my knowledge we don't actually use this API for anything
     11        other than tests, and even tests seem to use it only in the sense that they expect to be
     12        able to call it without crashing.
     13
     14        * bmalloc/Gigacage.cpp:
     15        (Gigacage::footprint):
     16
    1172021-09-09  Filip Pizlo  <fpizlo@apple.com>
    218
  • trunk/Source/bmalloc/bmalloc/Gigacage.cpp

    r281910 r282561  
    324324size_t footprint(Kind kind)
    325325{
     326#if BUSE(LIBPAS)
     327    BUNUSED(kind);
     328    return 0;
     329#else
    326330    return PerProcess<PerHeapKind<Heap>>::get()->at(heapKind(kind)).footprint();
     331#endif
    327332}
    328333
Note: See TracChangeset for help on using the changeset viewer.