Closed
Bug 1061646
Opened 11 years ago
Closed 11 years ago
CheckForInterrupt is slower on windows
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: h4writer, Assigned: h4writer)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
|
817 bytes,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
Looking on octane-regexp, CheckForInterrupt tend to take more time in windows than in linux. Especially in StrReplaceRegexpRemove.
I haven't really being able to figure out why yet.
Comment 1•11 years ago
|
||
It might be worth looking at what assembly gets generated for the boolean test of cx->runtime->interrupt. Its type is Atomic<bool, Relaxed> so it should just compile down to an unsynchronized load; but maybe something is messed up on windows. (I mention this b/c we initially had a regression when someone changed 'interrupt' from a 'volatile bool' to an 'Atomic<bool>' which was fixed by changing to 'Atomic<bool, Relaxed>'.)
| Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #1)
> It might be worth looking at what assembly gets generated for the boolean
> test of cx->runtime->interrupt. Its type is Atomic<bool, Relaxed> so it
> should just compile down to an unsynchronized load; but maybe something is
> messed up on windows. (I mention this b/c we initially had a regression
> when someone changed 'interrupt' from a 'volatile bool' to an 'Atomic<bool>'
> which was fixed by changing to 'Atomic<bool, Relaxed>'.)
Good suggestion, I'll look at that.
Keywords: leave-open
| Assignee | ||
Comment 3•11 years ago
|
||
Just force it to inline, though in most cases msvc already inlined it.
Assignee: nobody → hv1989
Attachment #8482726 -
Flags: review?(jorendorff)
| Assignee | ||
Comment 4•11 years ago
|
||
Like Luke already mentioned. This is because we lock on windows. I opened bug 1061764 for this.
Depends on: 1061764
| Assignee | ||
Comment 5•11 years ago
|
||
This is a workaround which fixes this slowdown. (If mfbt cannot get adjusted to fix this or if there is no solution before the next train departs)
| Assignee | ||
Updated•11 years ago
|
Attachment #8482800 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•11 years ago
|
||
The depending bug landed, so this can get closed. I'll leave it open untill this small patch here lands.
Keywords: leave-open
Comment 7•11 years ago
|
||
Comment on attachment 8482726 [details] [diff] [review]
Use MOZ_ALWAYS_INLINE instead of inline
Review of attachment 8482726 [details] [diff] [review]:
-----------------------------------------------------------------
Sure.
Attachment #8482726 -
Flags: review?(jorendorff) → review+
| Assignee | ||
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•