Re: [webkit-dev] Removing ENABLE_SINGLE_THREADED and ENABLE_JSC_MULTIPLE_THREADS

2011-09-14 Thread Yong Li
Hi Geoffrey,

From what I understand, HTML5 Web Worker doesn't rely on threaded GC
because each worker thread has its own heap. The other place affected
by ENABLE_JSC_MULTIPLE_THREADS is JSLock. However it is also said
platforms other than MacOS doesn't need to implement JSLock. It seems
the only use of ENABLE_JSC_MULTIPLE_THREADS is to use JS API from
another thread. Is this correct?

Thanks,
Yong Li

2011/9/8 Geoffrey Garen gga...@apple.com:
 Hi folks.

 To help move WebKit and JavaScriptCore forward, I'd like to remove old 
 platform cruft that creates particular pain points for development.

 To that end, I'd like to remove ENABLE_SINGLE_THREADED and 
 !ENABLE_JSC_MULTIPLE_THREADS. I believe these code paths are untested by core 
 WebKit developers. Also, in the modern world of multicore CPUs, it seems 
 prudent to allow programmers to assume that all OS's running WebKit at least 
 know what a thread is how to create one.

 Thoughts?

 Thanks,
 Geoff
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Removing ENABLE_SINGLE_THREADED and ENABLE_JSC_MULTIPLE_THREADS

2011-09-14 Thread Geoffrey Garen
 From what I understand, HTML5 Web Worker doesn't rely on threaded GC
 because each worker thread has its own heap.

That's the current implementation, yes. (But we may be able to do something 
more efficient if we allow workers to rely on threaded GC.)

 The other place affected
 by ENABLE_JSC_MULTIPLE_THREADS is JSLock. However it is also said
 platforms other than MacOS doesn't need to implement JSLock.

I think it's more accurate to say that platforms willing to crash if you use 
the JS API from multiple threads without explicit locking do not need to 
implement JSLock. (Of course, I'm trying to change that so the threading 
behavior of the JS API is consistent across all platforms. This is a key first 
step toward evolving the threading model in JSC.)

Another feature currently guarded by ENABLE_JSC_MULTIPLE_THREADS is lazy block 
freeing in the heap.

 It seems
 the only use of ENABLE_JSC_MULTIPLE_THREADS is to use JS API from
 another thread. Is this correct?

Not quite.

Also, bear in mind that I'm talking about the set of ENABLE_SINGLE_THREADED, 
ENABLE_JSC_MULTIPLE_THREADS, and ENABLE_WTF_MULTIPLE_THREADS.

Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Removing ENABLE_SINGLE_THREADED and ENABLE_JSC_MULTIPLE_THREADS

2011-09-08 Thread Geoffrey Garen
Hi folks.

To help move WebKit and JavaScriptCore forward, I'd like to remove old platform 
cruft that creates particular pain points for development.

To that end, I'd like to remove ENABLE_SINGLE_THREADED and 
!ENABLE_JSC_MULTIPLE_THREADS. I believe these code paths are untested by core 
WebKit developers. Also, in the modern world of multicore CPUs, it seems 
prudent to allow programmers to assume that all OS's running WebKit at least 
know what a thread is how to create one.

Thoughts?

Thanks,
Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Removing ENABLE_SINGLE_THREADED and ENABLE_JSC_MULTIPLE_THREADS

2011-09-08 Thread Zoltan Herczeg
Hi,

I like this idea. Multicore cpus are getting widespread even in the
low-end devices nowadays.

Regards,
Zoltan

 Hi folks.

 To help move WebKit and JavaScriptCore forward, I'd like to remove old
 platform cruft that creates particular pain points for development.

 To that end, I'd like to remove ENABLE_SINGLE_THREADED and
 !ENABLE_JSC_MULTIPLE_THREADS. I believe these code paths are untested by
 core WebKit developers. Also, in the modern world of multicore CPUs, it
 seems prudent to allow programmers to assume that all OS's running WebKit
 at least know what a thread is how to create one.

 Thoughts?

 Thanks,
 Geoff
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev