PR# 13815 Runtime should distinguish "object too big" from "no more memory"

Problem Report Summary
Submitter: prestoat2000
Category: Runtime
Priority: Medium
Date: 2007/12/21
Class: Feature Request
Severity: Non-critical
Number: 13815
Release: 6.1.71477
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.0.7) Gecko/20060915 Firefox/1.5.0.7 Solaris 9 on SPARC
Synopsis: Runtime should distinguish "object too big" from "no more memory"

Description
The run-time and the exception classes should distinguish between
"No more memory" (tried to allocate more memory but couldn't get any
more from OS) and "Object too big" (didn't even try to allocate requested
amount of memory because object size is too big to fit in space
allocated for it in the header).

Currently, if the requested object size is too big to fit in the header
the exception raised is "No more memory", which is very confusing if
you have a lot of memory on your system.
To Reproduce

										
Problem Report Interactions