Mark and I realized this is possible and we think it will be a good performance optimization.
Created attachment 27150 [details] fist steps
Created attachment 27186 [details] patch
Comment on attachment 27186 [details] patch Non-main-thread handling is wrong here. I'll have to make a new version.
Comment on attachment 27186 [details] patch Shouldn't the #if PLATFORM(MAC) || !defined(BUILDING_ON_TIGER) checks have an && rather than ||?
(In reply to comment #4) > Shouldn't the #if PLATFORM(MAC) || !defined(BUILDING_ON_TIGER) checks have an > && rather than ||? Yes. Thanks for spotting that.
Created attachment 27205 [details] patch -- this time I think it handles threading acceptably
Comment on attachment 27205 [details] patch -- this time I think it handles threading acceptably The calls to the system memory allocator should probably use FastMalloc instead, and the code may be slightly easier to follow if create() and allocator() were closer in the code. r=me
I'm going to attach the final patch here so Stephanie can more easily do some performance testing rolling it in and out.
Created attachment 27206 [details] final patch with changes requested by Mark
Created attachment 27208 [details] more final
http://trac.webkit.org/changeset/40438