<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>312733</bug_id>
          
          <creation_ts>2026-04-19 18:07:51 -0700</creation_ts>
          <short_desc>[libpas] Fix libpas standalone build</short_desc>
          <delta_ts>2026-04-22 07:04:50 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="zak ridouh">zakr</reporter>
          <assigned_to name="zak ridouh">zakr</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2202062</commentid>
    <comment_count>0</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-19 18:07:51 -0700</bug_when>
    <thetext>311133@main removed includes from headers whose macro bodies are guarded
by PAS_ENABLE_ISO / PAS_ENABLE_HOTBIT. These macros are 0 in WebKit
(PAS_BMALLOC=1) but 1 in the libpas standalone build, so the includes
were silently required by the standalone build. Restore them inside the
#if PAS_ENABLE_* guards so WebKit keeps the build-speed win.

Also fix several pre-existing issues that surface once the standalone
build gets past the include errors:

- Guard &lt;stdatomic.h&gt; in pas_utils.h for C-only. It conflicts with C++
  &lt;atomic&gt; before C++23 and breaks Verifier.cpp. The macros that use
  atomics (PAS_ATOMIC_TYPE / PAS_ATOMIC_LOAD_RELAXED) only use the
  _Atomic keyword and __c11_atomic_* clang builtins, neither of which
  needs the header.

- Restore &lt;pthread/tsd_private.h&gt; in pas_utils.h. TSDTests.cpp and
  pas_fast_tls.h depend on pthread_key_init_np,
  _pthread_setspecific_direct, and __PTK_FRAMEWORK_* keys from it.

- Add missing bmalloc_iso_allocate_array_by_size and
  bmalloc_try_iso_allocate_array_by_size definitions to
  bmalloc_heap_iso.c. They&apos;re declared in bmalloc_heap.h but were lost
  in db6887c9076e when bmalloc_heap.c was split.

- Add &apos;static&apos; to the 9 PAS_ALWAYS_INLINE functions in pas_mte.h. C99
  inline semantics require an external definition when the compiler
  chooses not to inline (which happens in Debug, where PAS_ALWAYS_INLINE
  drops __attribute__((always_inline))). The codebase convention is
  &apos;static PAS_ALWAYS_INLINE&apos; for header-only inline functions (489
  occurrences across 87 files); the pas_mte.h functions are anomalies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202063</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-19 18:07:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/175129910&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202064</commentid>
    <comment_count>2</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-19 18:12:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63084</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203162</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-22 07:04:48 -0700</bug_when>
    <thetext>Committed 311770@main (d7b3180cbfe8): &lt;https://commits.webkit.org/311770@main&gt;

Reviewed commits have been landed. Closing PR #63084 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>