[webkit-reviews] review denied: [Bug 214193] Add some testing for JSRunLoopTimer : [Attachment 403990] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 10 14:14:37 PDT 2020
Darin Adler <darin at apple.com> has denied Geoffrey Garen <ggaren at apple.com>'s
request for review:
Bug 214193: Add some testing for JSRunLoopTimer
https://bugs.webkit.org/show_bug.cgi?id=214193
Attachment 403990: Patch
https://bugs.webkit.org/attachment.cgi?id=403990&action=review
--- Comment #3 from Darin Adler <darin at apple.com> ---
Comment on attachment 403990
--> https://bugs.webkit.org/attachment.cgi?id=403990
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=403990&action=review
> Tools/TestWebKitAPI/Tests/JavaScriptCore/JSRunLoopTimer.mm:66
> + auto context = adoptNS([JSContext new]);
So retro to use new instead of alloc/init.
> Tools/TestWebKitAPI/Tests/JavaScriptCore/JSRunLoopTimer.mm:69
> + while (!s_done) {
Need to set s_done to false in case IncrementalSweeperSecondaryThread test
already ran? But what about objects left behind from running that test? Could
they result in false negatives for this test?
> Tools/TestWebKitAPI/Tests/JavaScriptCore/JSRunLoopTimer.mm:73
> + auto jsObject = adoptNS([JSValue
valueWithObject:object.get() inContext:context.get()]);
This looks like an overrelease. Should not adopt the result of valueWithObject.
> Tools/TestWebKitAPI/Tests/JavaScriptCore/JSRunLoopTimer.mm:90
> + while (!s_done) {
Need to set s_done to false in case IncrementalSweeperMainThread test already
ran? But what about objects left behind from running that test? Could they
result in false negatives for this test?
> Tools/TestWebKitAPI/Tests/JavaScriptCore/JSRunLoopTimer.mm:96
> + auto jsObject = adoptNS([JSValue
valueWithObject:object.get() inContext:context.get()]);
This looks like an overrelease. Should not adopt the result of valueWithObject.
More information about the webkit-reviews
mailing list