WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 185043
Expose "$262.agent.monotonicNow()" for use in testing Atomic operation timeouts
https://bugs.webkit.org/show_bug.cgi?id=185043
Summary
Expose "$262.agent.monotonicNow()" for use in testing Atomic operation timeouts
Rick Waldron
Reported
2018-04-26 13:24:07 PDT
During a discussion (re: Atomics testing in Test262) with Filip Pizlo this afternoon, we determined that $262.agent should expose a new function that returns a monotonically increasing time value (to avoid relying on Date.now()). I believe this can be implemented by exposing a wrapper for MonotonicTime::now() (Patch to follow)
Attachments
$262.agent.monotonicNow()
(2.32 KB, patch)
2018-04-26 17:44 PDT
,
Rick Waldron
no flags
Details
Formatted Diff
Diff
$262.agent.monotonicNow()
(4.37 KB, patch)
2018-04-27 08:02 PDT
,
Rick Waldron
no flags
Details
Formatted Diff
Diff
$262.agent.monotonicNow()
(3.13 KB, patch)
2018-04-27 08:12 PDT
,
Rick Waldron
fpizlo
: review+
Details
Formatted Diff
Diff
$262.agent.monotonicNow()
(2.39 KB, patch)
2018-04-27 08:36 PDT
,
Rick Waldron
no flags
Details
Formatted Diff
Diff
$262.agent.monotonicNow()
(3.00 KB, patch)
2018-04-30 07:43 PDT
,
Rick Waldron
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews200 for win-future
(12.87 MB, application/zip)
2018-04-30 09:27 PDT
,
EWS Watchlist
no flags
Details
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Rick Waldron
Comment 1
2018-04-26 17:44:45 PDT
Created
attachment 338943
[details]
$262.agent.monotonicNow()
Filip Pizlo
Comment 2
2018-04-27 06:39:35 PDT
Comment on
attachment 338943
[details]
$262.agent.monotonicNow() Looks good. All it needs is a change log and I can r+ it.
Rick Waldron
Comment 3
2018-04-27 08:02:12 PDT
Created
attachment 338988
[details]
$262.agent.monotonicNow()
Rick Waldron
Comment 4
2018-04-27 08:12:26 PDT
Created
attachment 338989
[details]
$262.agent.monotonicNow()
Filip Pizlo
Comment 5
2018-04-27 08:15:33 PDT
Comment on
attachment 338989
[details]
$262.agent.monotonicNow() R=me but the changelog looks pretty goofy. Why does it claim that you changed all of those functions?
Rick Waldron
Comment 6
2018-04-27 08:30:32 PDT
I'm not sure, but I wonder if the changelog program sees all of the uncommitted whitespace changes that exist in the file. I'd like to "discard changes" for those whitespace bits and regenerate the changelog entry.
Rick Waldron
Comment 7
2018-04-27 08:36:39 PDT
Created
attachment 338991
[details]
$262.agent.monotonicNow() Filip, sure enough—the whitespace changes that existed in jsc.cpp, but not committed, were treated as meaningful changes to report. I'll be more mindful of that in the future.
Rick Waldron
Comment 8
2018-04-30 07:43:25 PDT
Created
attachment 339108
[details]
$262.agent.monotonicNow()
EWS Watchlist
Comment 9
2018-04-30 09:27:28 PDT
Comment on
attachment 339108
[details]
$262.agent.monotonicNow()
Attachment 339108
[details]
did not pass win-ews (win): Output:
http://webkit-queues.webkit.org/results/7507664
New failing tests: http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-audio.html
EWS Watchlist
Comment 10
2018-04-30 09:27:40 PDT
Created
attachment 339112
[details]
Archive of layout-test-results from ews200 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Filip Pizlo
Comment 11
2018-04-30 09:53:49 PDT
(In reply to rwaldron from
comment #8
)
> Created
attachment 339108
[details]
> $262.agent.monotonicNow()
Did you mean to commit this version? Looks like ews is having issues on Windows but it looks like an unrelated flaky failure. If you’d like, I can call+ it again or land manually.
Rick Waldron
Comment 12
2018-04-30 19:06:13 PDT
(In reply to Filip Pizlo from
comment #11
)
> (In reply to rwaldron from
comment #8
) > > Created
attachment 339108
[details]
> > $262.agent.monotonicNow() > > Did you mean to commit this version?
Yes, this new patch was intentional. Because I had to do interactive per-line staging to avoid committing all of the whitespace changes, I accidentally missed this line: static EncodedJSValue JSC_HOST_CALL functionDollarAgentMonotonicNow(ExecState*); So I had to replace the existing patch with a revised patch.
> Looks like ews is having issues on > Windows but it looks like an unrelated flaky failure.
I have no idea why that windows test is failing, that's definitely odd.
> If you’d like, I can call+ it again or land manually.
Whichever is easiest for you?
Filip Pizlo
Comment 13
2018-05-02 09:37:39 PDT
Comment on
attachment 339108
[details]
$262.agent.monotonicNow() Let’s try that again.
WebKit Commit Bot
Comment 14
2018-05-02 10:05:57 PDT
Comment on
attachment 339108
[details]
$262.agent.monotonicNow() Clearing flags on attachment: 339108 Committed
r231238
: <
https://trac.webkit.org/changeset/231238
>
WebKit Commit Bot
Comment 15
2018-05-02 10:05:58 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 16
2018-05-02 10:08:13 PDT
<
rdar://problem/39908404
>
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