Closed Bug 633408 Opened 14 years ago Closed 14 years ago

32bit Firefox failed to start on a machine with 16GB (or 32GB ...) memory

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
blocker

Tracking

()

RESOLVED FIXED
mozilla2.0b12
Tracking Status
blocking2.0 --- -
status2.0 --- wanted

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

References

Details

(Keywords: regression, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

This bug is found on a Solaris/SPARC machine with 16GB memory. I think it is valid for all platforms. In xpcjsruntime.cpp, we have 1468 JS_SetNativeStackQuota(cx, 128 * sizeof(size_t) * 1024); 1469 PRInt64 totalMemory = PR_GetPhysicalMemorySize(); 1470 JS_SetScriptStackQuota(cx, PR_MAX(25 * sizeof(size_t) * 1024 * 1024, 1471 totalMemory / 4)); JS_SetScriptStackQuota takes size_t for quota. So if we have 16GB memory, we're actually setting quota to zero.
blocking2.0: --- → ?
Not a blocker, but we take an approved patch. Almost nobody has that much RAM. You patch, I review and approve?
blocking2.0: ? → -
status2.0: --- → wanted
Attached patch patch (deleted) — Splinter Review
what about this one?
Assignee: general → ginn.chen
Status: NEW → ASSIGNED
Attachment #511587 - Flags: review?(gal)
Comment on attachment 511587 [details] [diff] [review] patch Looks good. The problem is really the PRInt64 totalMemory.
Attachment #511587 - Flags: review?(gal)
Attachment #511587 - Flags: review+
Attachment #511587 - Flags: approval2.0+
http://hg.mozilla.org/tracemonkey/rev/bc906595cef3 Sorry I made a typo in commit message. :(
Whiteboard: fixed-in-tracemonkey
Model Name: Mac Pro Processor Name: Quad-Core Intel Xeon Processor Speed: 3 GHz Memory: 16 GB MAC OS X: 10.6.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b11) Gecko/20100101 Firefox/4.0b11 64bit runs fine. 32bit fails to launch.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: