lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "Sean" == Sean Conner <sean@conman.org> writes:

 Sean> You might never encounter a system where that happens (much like
 Sean> you will probably never come across a system with sign-magnitude
 Sean> integer arithmetic that the C standard allows),

Systems where realloc() can fail to shrink a block are not rare (as I
pointed out when this topic came up before) - in particular jemalloc,
which is the default malloc on FreeBSD, can fail this way, as can any
system which maintains a distinction between large and small blocks
(which is a fairly common design approach for malloc).

-- 
Andrew.