Summary: | Disable ReadWriteLock on platforms using pthreads but which do not support pthread_rwlock | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Steve Block <steveblock> | ||||
Component: | JavaScriptCore | Assignee: | Steve Block <steveblock> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | benm, commit-queue, hyatt, steveblock | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Other | ||||||
OS: | Other | ||||||
Attachments: |
|
Description
Steve Block
2009-10-23 06:38:28 PDT
Created attachment 41723 [details] Patch 1 for Bug 30713 Comment on attachment 41723 [details] Patch 1 for Bug 30713 This looks sane to me, but whoever added the ReadWriteLock stuff should really review/comment here. It’s not used anywhere. I suspect it was added for a short-lived experiment, and that we can now rip it out completely. Comment on attachment 41723 [details] Patch 1 for Bug 30713 Seems OK. I'm not sure it's good to have all these cases, this one included, where the type PlatformReadWriteLock defined to be void*. If we're going to omit ReadWriteLock, then I suggest we do that in the header too rather than compiling a useless ReadWriteLock. What's more, I can't find any code using ReadWriteLock anywhere in the WebKit source code nor in Safari'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. > What's more, I can't find any code using ReadWriteLock anywhere in the WebKit
> source code nor in Safari's source code.
I wasn't sure if Hyatt was still working on the code that makes use of this class.
I'll commit this patch, but if Hyatt can confirm that the class isn't needed, I'll happily send a patch to remove it completely.
Comment on attachment 41723 [details] Patch 1 for Bug 30713 Clearing flags on attachment: 41723 Committed r50052: <http://trac.webkit.org/changeset/50052> All reviewed patches have been landed. Closing bug. |