Closed
Bug 1034638
Opened 10 years ago
Closed 10 years ago
Don't make QPC to GTC fallback in TimeStamp_windows let change differences of previously taken timestamps
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: mayhemer, Assigned: mayhemer)
Details
Attachments
(1 file)
(deleted),
patch
|
robarnold
:
review+
|
Details | Diff | Splinter Review |
- two stamp taken before we've detected a QPC misbehavior, contain GTC+QPC values
- count duration from them, value is X1
- drop the use-QPC flag to false
- count duration from the two stamps again, value is X2 and X2 <> X1
This can be easily changed, when both stamps have the QPC value stored and it's found sane, use it for the duration calculation regardless the QPC flag.
The patch moves the if (!useQPC) return GTC1-GTC2; way after we do the initial QPC vs GTC sanity checks. Now the result is independent of the useQPC global flag changes.
Attachment #8451028 -
Flags: review?(tellrob)
Comment 1•10 years ago
|
||
Comment on attachment 8451028 [details] [diff] [review]
v1
Review of attachment 8451028 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the delay. That is a good case to consider! Any way to write a unit test for it? It seems nicely self contained.
Attachment #8451028 -
Flags: review?(tellrob) → review+
Assignee | ||
Comment 2•10 years ago
|
||
(In reply to Rob Arnold [:robarnold] from comment #1)
> Comment on attachment 8451028 [details] [diff] [review]
> v1
>
> Review of attachment 8451028 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Sorry for the delay. That is a good case to consider! Any way to write a
> unit test for it? It seems nicely self contained.
I absolutely don't know how to write a test for this, sorry.
Thanks for the review.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•