Closed
Bug 564906
Opened 15 years ago
Closed 15 years ago
implement cpu feature detection for android
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: blassey, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #444486 -
Flags: review?(vladimir)
Comment 1•15 years ago
|
||
Comment on attachment 444486 [details] [diff] [review]
patch
We should unify this with the nanojit detection code.
Question on irc about why auxv isn't working still stands -- this code has changed significnatly on m-c, when we pulled in a new pixman, and this won't apply; the new code still uses auxv, so if we can go that route, we should.
The only issue was figuring out whether we could read /proc/self/auxv -- it seemed like we couldn't, but then maybe we could. It's entirely possible that we're just missing some permission in the manifest that would allow this (access to filesystems or something like that, basically access outside of our own /app/data directory).
WRITE_EXTERNAL_STORAGE would be one thing to test (and something we'll likely want to set anyway).
Reporter | ||
Comment 4•15 years ago
|
||
/proc/self/auxv is only readable by root, which /proc/cpuinfo is readable by all. I don't think this is a problem with the jvm permissions, but rather a user permissions problem.
We can try to read auxv first and then fallback to reading cpuinfo, but we're going to be in the fallback case everytime as far as I can tell.
Reporter | ||
Comment 5•15 years ago
|
||
Also, Vlad mentioned that the 1024 char buffer might not be enough if we have multiple cores. The the cpu info from the nexus one takes 264 chars, and I would assume we'd get all the info we need off of the first core in the list anyway.
Reporter | ||
Comment 6•15 years ago
|
||
Here's a patch against trunk. Fwiw, we have the updated pixman on mozilla-droid.
Attachment #444486 -
Attachment is obsolete: true
Attachment #445053 -
Flags: review?(vladimir)
Attachment #444486 -
Flags: review?(vladimir)
Comment on attachment 445053 [details] [diff] [review]
patch against trunk
bleh, I guess it's fine.. just make sure you put a .patch file for pixman inside the cairo dir or this'll get blown away in the future. Also poke jeff to get this into upstream.
Attachment #445053 -
Flags: review?(vladimir) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•