This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/14483] obstack uses int for allocation sizes


https://sourceware.org/bugzilla/show_bug.cgi?id=14483

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neleai at seznam dot cz
           Severity|normal                      |enhancement

--- Comment #2 from Ondrej Bilka <neleai at seznam dot cz> ---
Returning a stack sie as size_t could be feasible. However extending arguments
from ints is nonsense, obstack is used for quick allocation of lot of small
objects. You can have only few large objects until you run out of memory, Also
returning huge chunks of memory to system looks better than keeping them in
obstack.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]