<?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>30713</bug_id>
          
          <creation_ts>2009-10-23 06:38:28 -0700</creation_ts>
          <short_desc>Disable ReadWriteLock on platforms using pthreads but which do not support pthread_rwlock</short_desc>
          <delta_ts>2009-10-26 03:47:11 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Steve Block">steveblock</reporter>
          <assigned_to name="Steve Block">steveblock</assigned_to>
          <cc>benm</cc>
    
    <cc>commit-queue</cc>
    
    <cc>hyatt</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157153</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2009-10-23 06:38:28 -0700</bug_when>
    <thetext>ReadWriteLock is currently used only on SnowLeopard. See http://trac.webkit.org/changeset/44651. It is therefore implemented only on platforms using pthreads.

However, some platforms that use pthreads (eg Android) do not support pthread_rwlock. For these platforms, ReadWriteLock should be disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157155</commentid>
    <comment_count>1</comment_count>
      <attachid>41723</attachid>
    <who name="Steve Block">steveblock</who>
    <bug_when>2009-10-23 06:45:01 -0700</bug_when>
    <thetext>Created attachment 41723
Patch 1 for Bug 30713</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157219</commentid>
    <comment_count>2</comment_count>
      <attachid>41723</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-23 11:42:46 -0700</bug_when>
    <thetext>Comment on attachment 41723
Patch 1 for Bug 30713

This looks sane to me, but whoever added the ReadWriteLock stuff should really review/comment here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157435</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-10-24 00:54:10 -0700</bug_when>
    <thetext>It’s not used anywhere.  I suspect it was added for a short-lived experiment, and that we can now rip it out completely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157633</commentid>
    <comment_count>4</comment_count>
      <attachid>41723</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-10-25 16:18:28 -0700</bug_when>
    <thetext>Comment on attachment 41723
Patch 1 for Bug 30713

Seems OK.

I&apos;m not sure it&apos;s good to have all these cases, this one included, where the type PlatformReadWriteLock defined to be void*. If we&apos;re going to omit ReadWriteLock, then I suggest we do that in the header too rather than compiling a useless ReadWriteLock.

What&apos;s more, I can&apos;t find any code using ReadWriteLock anywhere in the WebKit source code nor in Safari&apos;s source code. It looks like Hyatt added this class but never started using it.

This patch is fine, but I think we could also consider dropping this unused code.

I see that Mark Rowe said the same thing in his recent comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157718</commentid>
    <comment_count>5</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2009-10-26 03:26:23 -0700</bug_when>
    <thetext>&gt; What&apos;s more, I can&apos;t find any code using ReadWriteLock anywhere in the WebKit
&gt; source code nor in Safari&apos;s source code.
I wasn&apos;t sure if Hyatt was still working on the code that makes use of this class.

I&apos;ll commit this patch, but if Hyatt can confirm that the class isn&apos;t needed, I&apos;ll happily send a patch to remove it completely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157723</commentid>
    <comment_count>6</comment_count>
      <attachid>41723</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-26 03:47:04 -0700</bug_when>
    <thetext>Comment on attachment 41723
Patch 1 for Bug 30713

Clearing flags on attachment: 41723

Committed r50052: &lt;http://trac.webkit.org/changeset/50052&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157724</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-26 03:47:11 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>41723</attachid>
            <date>2009-10-23 06:45:01 -0700</date>
            <delta_ts>2009-10-26 03:47:04 -0700</delta_ts>
            <desc>Patch 1 for Bug 30713</desc>
            <filename>rwlock.txt</filename>
            <type>text/plain</type>
            <size>3294</size>
            <attacher name="Steve Block">steveblock</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDQ5OTc2KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMDktMTAtMjMgIFN0ZXZlIEJs
b2NrICA8c3RldmVibG9ja0Bnb29nbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIEFkZHMgYWJpbGl0eSB0byBkaXNhYmxlIFJlYWRXcml0ZUxv
Y2sgb24gcGxhdGZvcm1zIChlZ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