Closed Bug 605010 Opened 14 years ago Closed 13 years ago

JM: Add detection for multibyte NOP

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: millerdevel, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4
Build Identifier: 

Multibyte NOP's are not supported on every CPU, so we need to query CPUID to see if they can be used.

Reproducible: Always
Attached patch patch v1Splinter Review
Shifted the actual CPUID call out to a function shared between the multibyte NOP detection code and the SSE detection code and added multibyte NOP detection modeled after the existing SSE detection.
Attachment #483846 - Flags: review?(sstangl)
Are we seeing crashes due to this?  Seems like we could be, and an easy win for stability for those users. b8 fodder?
(In reply to comment #2)
> Are we seeing crashes due to this?  Seems like we could be, and an easy win for
> stability for those users. b8 fodder?

I don't think we have a way of knowing that. It's a good prospective stability fix, though.
Status: UNCONFIRMED → NEW
blocking2.0: --- → betaN+
Ever confirmed: true
(In reply to comment #0)
> Multibyte NOP's are not supported on every CPU, so we need to query CPUID to
> see if they can be used.

Where do the multibyte nops come into play? dvander says JM doesn't generate any.
This patch was created at sstangl's request. I believe he was using it to do testing to see if forcing alignment of jump or call destinations would increase performance. I'm not sure what the status of his work is.

To directly address the questions above, this patch is not meant in any way to address crashes or stability of existing code.
There are no crashes due to this patch (or any related concept). Multibyte NOPs are useful for alignment purposes. This patch is support code for another patch, yet to be added to bugzilla, that uses multibyte NOPs to align jump targets to pointer-size.
blocking2.0: betaN+ → ---
Sean, is this still wanted?
No, it doesn't look like we'll need multi-byte NOPs in the future.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Attachment #483846 - Flags: review?(sstangl)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: