Re: FreeBSD 9.1 excessive memory allocations [SOLVED]
> =
> I think you may be reading too much into the malloc manpage.=A0 When it
> mentions the use of per-thread small-object caches to avoid locking it's
> talking about performance, not thread safety.=A0 Allocations of all sizes
> are thread-safe, the library just assumes that huge allocations are rare
> enough that it doesn't use extra per-thread resources to avoid locking
> for them, it just uses locking for huge blocks.
> =
> -- Ian
>
Good to note all allocations are thread safe in FreeBSD. Is it by some stan=
dard that malloc should be thread safe regardless the OS (BSDs, Linux, Wind=
ows, Android, etc)?
Unga
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 6 之 6 篇):