WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
34742
[Qt] Optimize getCPUTime for Symbian
https://bugs.webkit.org/show_bug.cgi?id=34742
Summary
[Qt] Optimize getCPUTime for Symbian
Janne Koskinen
Reported
2010-02-09 00:32:04 PST
Running tst_QWebPage::infiniteLoopJS() will never exit (testrun timeout is 1h) and unit test executable stops responding. In order to exit the phone has to be rebooted. When running the same test on emulator it will pass. So for some reason javascript execution on HW is not stopped. Implications of this test is , if failing, that any JS code getting stuck or taking long will block the running thread. Test was run on Nokia 5800 Express Music, Qt and QtWebkit built for armv5 urel using RVCT 2.2.
Attachments
proposed fix for timeoutchecker.cpp
(1.57 KB, patch)
2010-02-23 04:46 PST
,
Janne Koskinen
no flags
Details
Formatted Diff
Diff
proposed fix for timeoutchecker.cpp style fixed
(1.57 KB, patch)
2010-02-23 05:01 PST
,
Janne Koskinen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Janne Koskinen
Comment 1
2010-02-17 08:11:54 PST
This issue is caused by bug in Open C 1.6 implementation of gettimeofday(). gtod precision seems to vary from min. 1sec to several minutes i.e. calling gtod several times in a row will return the same value. This value is then used in TimeoutChecker getCPUTime() to calculate time spent running the script causing the script never to be interrupted.
Janne Koskinen
Comment 2
2010-02-23 04:46:59 PST
Created
attachment 49276
[details]
proposed fix for timeoutchecker.cpp Patch contains a proper implementation of getCPUTime for Symbian. It works from Symbian 9.1 onwards i.e. S60 3rd edition and up as that is when GetCpuTime function was introduced. Tested the the patch to run on Nokia N95 and Nokia 5800 Express Music. It is possible that some device doesn't implement the function or has it disabled, thus added assertion for debugging purposes to see if some device returns KErrNotSupported. Also reported the gettimeofday -issue to Open C guys, so that will be fixed in future releases.
WebKit Review Bot
Comment 3
2010-02-23 04:51:37 PST
Attachment 49276
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 JavaScriptCore/runtime/TimeoutChecker.cpp:92: Missing space after , [whitespace/comma] [3] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Janne Koskinen
Comment 4
2010-02-23 05:01:10 PST
Created
attachment 49278
[details]
proposed fix for timeoutchecker.cpp style fixed fixed style issue with ,
Laszlo Gombos
Comment 5
2010-02-23 08:48:25 PST
I changed the title to better reflect what this patch does. Approach looks good to me I think Symbian specific code is justified here.
WebKit Commit Bot
Comment 6
2010-02-26 11:50:59 PST
Comment on
attachment 49278
[details]
proposed fix for timeoutchecker.cpp style fixed Clearing flags on attachment: 49278 Committed
r55296
: <
http://trac.webkit.org/changeset/55296
>
WebKit Commit Bot
Comment 7
2010-02-26 11:51:04 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug