<?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>31191</bug_id>
          
          <creation_ts>2009-11-05 15:23:41 -0800</creation_ts>
          <short_desc>[v8] get rid of unnecessary synchronization in weak reference callbacks</short_desc>
          <delta_ts>2009-11-06 05:49:19 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="anton muhin">antonm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jens</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>160984</commentid>
    <comment_count>0</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2009-11-05 15:23:41 -0800</bug_when>
    <thetext>Currently browser and renderer execute V8-related code (including GC) in the main thread.  So a lot of synchronization is actually unused and only makes us slower.

I don&apos;t do the full cleanup (but would do on request) to make it easier to rollback this synchronization infrastructure if need be.  On the other side that&apos;s exactly what version control should do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160988</commentid>
    <comment_count>1</comment_count>
      <attachid>42604</attachid>
    <who name="anton muhin">antonm</who>
    <bug_when>2009-11-05 15:27:00 -0800</bug_when>
    <thetext>Created attachment 42604
First take</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161057</commentid>
    <comment_count>2</comment_count>
      <attachid>42604</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-11-05 20:19:02 -0800</bug_when>
    <thetext>Comment on attachment 42604
First take

Ok.  Isn&apos;t our plan to run workers in process at some point?  I guess we can tackle that problem when we come to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161124</commentid>
    <comment_count>3</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2009-11-06 05:30:04 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 42604 [details])
&gt; Ok.  Isn&apos;t our plan to run workers in process at some point?  I guess we can
&gt; tackle that problem when we come to it.

Yep.  That&apos;s exactly why I don&apos;t want to cleanup the stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161125</commentid>
    <comment_count>4</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2009-11-06 05:30:29 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 42604 [details] [details])
&gt; &gt; Ok.  Isn&apos;t our plan to run workers in process at some point?  I guess we can
&gt; &gt; tackle that problem when we come to it.
&gt; 
&gt; Yep.  That&apos;s exactly why I don&apos;t want to cleanup the stuff.

And thanks a lot for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161129</commentid>
    <comment_count>5</comment_count>
      <attachid>42604</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-06 05:49:13 -0800</bug_when>
    <thetext>Comment on attachment 42604
First take

Clearing flags on attachment: 42604

Committed r50598: &lt;http://trac.webkit.org/changeset/50598&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161130</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-06 05:49:19 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42604</attachid>
            <date>2009-11-05 15:27:00 -0800</date>
            <delta_ts>2009-11-06 05:49:13 -0800</delta_ts>
            <desc>First take</desc>
            <filename>WebCore.patch</filename>
            <type>text/plain</type>
            <size>2275</size>
            <attacher name="anton muhin">antonm</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1MDU4MCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTMgQEAKKzIwMDktMTEtMDUgIEFudG9uIE11aGluICA8YW50b25tQGNocm9taXVt
Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBE
byBub3QgdW5uZWNlc3Nhcmx5IHN5bmNocm9uemllIGluIHdlYWsgcmVmZXJlbmNlIGNhbGxiYWNr
cy4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTMxMTkx
CisKKyAgICAgICAgKiBiaW5kaW5ncy92OC9ET01EYXRhLmg6CisgICAgICAgIChXZWJDb3JlOjpE
T01EYXRhOjpoYW5kbGVXZWFrT2JqZWN0KToKKwogMjAwOS0xMS0wNSAgU2NvdHQgVmlvbGV0ICA8
c2t5QGdvb2dsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgRGltaXRyaSBHbGF6a292LgpJ
bmRleDogV2ViQ29yZS9iaW5kaW5ncy92OC9ET01EYXRhLmgKPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09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jpET01XcmFwcGVyTWFw
VHlwZSBtYXBUeXBlLCB2ODo6SGFuZGxlPHY4OjpPYmplY3Q+IHY4T2JqZWN0LCBUKiBkb21PYmpl
Y3QpCiAgICAgewotCi0gICAgICAgIFdURjo6TXV0ZXhMb2NrZXIgbG9ja2VyKERPTURhdGFTdG9y
ZTo6YWxsU3RvcmVzTXV0ZXgoKSk7CisgICAgICAgIEFTU0VSVChXVEY6OmlzTWFpblRocmVhZCgp
KTsKICAgICAgICAgRE9NRGF0YUxpc3QmIGxpc3QgPSBET01EYXRhU3RvcmU6OmFsbFN0b3Jlcygp
OwogICAgICAgICBmb3IgKHNpemVfdCBpID0gMDsgaSA8IGxpc3Quc2l6ZSgpOyArK2kpIHsKICAg
ICAgICAgICAgIERPTURhdGFTdG9yZSogc3RvcmUgPSBsaXN0W2ldOwpAQCAtMTA4LDcgKzk4LDgg
QEAKICAgICAgICAgICAgIGlmICgqd3JhcHBlciA9PSAqdjhPYmplY3QpIHsKICAgICAgICAgICAg
ICAgICAvLyBDbGVhciB0aGUgSlMgcmVmZXJlbmNlLgogICAgICAgICAgICAgICAgIGRvbU1hcC0+
Zm9yZ2V0T25seShkb21PYmplY3QpOwotICAgICAgICAgICAgICAgIHN0b3JlLT5kb21EYXRhKCkt
PmVuc3VyZURlcmVmKFY4RE9NV3JhcHBlcjo6ZG9tV3JhcHBlclR5cGUodjhPYmplY3QpLCBkb21P
YmplY3QpOworICAgICAgICAgICAgICAgIEFTU0VSVChzdG9yZS0+ZG9tRGF0YSgpLT5vd25pbmdU
aHJlYWQoKSA9PSBXVEY6OmN1cnJlbnRUaHJlYWQoKSk7CisgICAgICAgICAgICAgICAgc3RvcmUt
PmRvbURhdGEoKS0+ZGVyZWZPYmplY3QoVjhET01XcmFwcGVyOjpkb21XcmFwcGVyVHlwZSh2OE9i
amVjdCksIGRvbU9iamVjdCk7CiAgICAgICAgICAgICB9CiAgICAgICAgIH0KICAgICB9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>