Re: Necko e10s specs

Robert O'Callahan <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization Mozilla Corporation
Message-ID <0YadncBuduOC5j3XnZ2dnUVZ_sWdnZ2d__8695.15391900695$1252031436$gmane$org@mozilla.org>
On 4/09/09 8:48 AM, Benjamin Smedberg wrote:
> I was vaguely aware, but we got a lot more aware of them today. I've posted
> some questions/proposals to WhatWG: the current global storage mutex is
> really unpleasant and I think we'd like to avoid it if it's not too painful
> to do so.

I think we need to grapple with the storage mutex at some point anyway, 
for localStorage. I think it would be really good for the Web if we 
could implement the currently specced requirements in a performant way.

The storage mutex doesn't have to be implemented as a single global 
lock. I was thinking we could define an "entangled" relation over 
documents, where two documents with the same domain are entangled, and 
two documents running in the same process are entangled, and the 
relation is transitively closed. Then we could partition those documents 
into equivalence classes and have one "storage mutex" per equivalence 
class. If we maintain this relation and the storage mutex(es) in the 
master process, how hard would this be?

Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.