<?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>271108</bug_id>
          
          <creation_ts>2024-03-16 03:22:59 -0700</creation_ts>
          <short_desc>REGRESSION(274077@main): failure to build on i586 (and likely other 32bit arches): static assertion failed: Timer should stay small</short_desc>
          <delta_ts>2024-03-18 11:16:26 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=268703</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Leuenberger">dimstar</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>berto</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2021573</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2024-03-16 03:22:59 -0700</bug_when>
    <thetext>[ 1646s] In file included from /home/abuild/rpmbuild/BUILD/webkitgtk-2.44.0/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-12.cpp:2:
[ 1646s] /home/abuild/rpmbuild/BUILD/webkitgtk-2.44.0/Source/WebCore/platform/Timer.cpp:269:29: error: static assertion failed: Timer should stay small
[ 1646s]   269 | static_assert(sizeof(Timer) == sizeof(SameSizeAsTimer), &quot;Timer should stay small&quot;);
[ 1646s]       |               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[ 1646s] /home/abuild/rpmbuild/BUILD/webkitgtk-2.44.0/Source/WebCore/platform/Timer.cpp:269:29: note: the comparison reduces to â€˜(40 == 36)â€™
[ 1646s] /home/abuild/rpmbuild/BUILD/webkitgtk-2.44.0/Source/WebCore/platform/Timer.cpp:275:46: error: static assertion failed: DeferrableOneShotTimer should stay small
[ 1646s]   275 | static_assert(sizeof(DeferrableOneShotTimer) == sizeof(SameSizeAsDeferrableOneShotTimer), &quot;DeferrableOneShotTimer should stay small&quot;);
[ 1646s]       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021574</commentid>
    <comment_count>1</comment_count>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2024-03-16 03:23:49 -0700</bug_when>
    <thetext>Version 2.43.4 was the last I tested and that still built successfylly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021610</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-03-16 15:38:21 -0700</bug_when>
    <thetext>I think SameSizeAsTimer is missing the size of the bitfields, which don&apos;t get compacted on 32-bit architectures. Let me test it...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021617</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-03-16 17:45:11 -0700</bug_when>
    <thetext>Hey Ryosuke, are you OK with this? I will create a pull request soon.

(Alternatively, we could put the uint8_t at the bottom of the struct by reordering the Timer data members.)

diff --git a/Source/WebCore/platform/Timer.cpp b/Source/WebCore/platform/Timer.cpp
index 4f7c0f5c39ca..0f3734cca247 100644
--- a/Source/WebCore/platform/Timer.cpp
+++ b/Source/WebCore/platform/Timer.cpp
@@ -263,7 +263,11 @@ struct SameSizeAsTimer {
 
     WeakPtr&lt;TimerAlignment&gt; timerAlignment;
     double times[2];
-    void* pointers[3];
+    void* pointers[2];
+#if CPU(ADDRESS32)
+    uint8_t bitfields;
+#endif
+    void* pointer;
 };
 
 static_assert(sizeof(Timer) == sizeof(SameSizeAsTimer), &quot;Timer should stay small&quot;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021786</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-03-18 09:57:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26053</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021821</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-18 11:16:22 -0700</bug_when>
    <thetext>Committed 276282@main (2922af379dc7): &lt;https://commits.webkit.org/276282@main&gt;

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

    </bug>

</bugzilla>