digitalmars.D.bugs - [Issue 1180] New: the GC failes to handle large allocation requests propperly
- d-bugmail puremagic.com (23/23) Apr 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1180
- d-bugmail puremagic.com (9/9) Apr 27 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1180
http://d.puremagic.com/issues/show_bug.cgi?id=1180
Summary: the GC failes to handle large allocation requests
propperly
Product: D
Version: 1.012
Platform: PC
OS/Version: All
Status: NEW
Severity: blocker
Priority: P3
Component: Phobos
AssignedTo: bugzilla digitalmars.com
ReportedBy: thomas-dloop kuehne.cn
Due to the size calculation used in all array length related GC functions
excessive allocation requests like
long[] l = new long[size_t.max];
allocate "(element_size * element_count) & 0xFFFF_FFFF" bytes and not
"element_size * element_count" bytes.
Even non-excessive requests like
byte[] b = new byte[size_t.max / 3];
fail with a segfault because bigAlloc uses "assert (0)" instead of
"_d_OutOfMemory".
--
Apr 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1180
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Fixed DMD 1.014
--
Apr 27 2007








d-bugmail puremagic.com