Hello Everyone: What's the rule about heap management? Especially what's the function of do_brk? mudongliang
On Tue, 14 Apr 2015 23:01:58 +0800, 慕冬亮 said:
Hello Everyone: What's the rule about heap management? Especially what's the function of do_brk?
Who says there's a "rule" about it? Some userspace heap managers don't even *use* brk() or sbrk(), but instead use mmap() of an anonymous area.
Can you give a detail of what you want to prove? I am not familiar with heap management , so I ask for the details! mudongliang 2015-04-15 0:00 GMT+08:00 <Valdis.Kletnieks@vt.edu>:
On Tue, 14 Apr 2015 23:01:58 +0800, 慕冬亮 said:
Hello Everyone: What's the rule about heap management? Especially what's the function of do_brk?
Who says there's a "rule" about it? Some userspace heap managers don't even *use* brk() or sbrk(), but instead use mmap() of an anonymous area.
On Wed, 15 Apr 2015 12:28:06 +0800, 慕冬亮 said:
Can you give a detail of what you want to prove? I am not familiar with heap management , so I ask for the details!
As I said - heap management is usually mostly done in userspace. The way the standard glibc malloc() call does things is almost certainly different from the way other C libraries such as uClibc or klibc or dietlibc do it. Then there's a number of debugging malloc() packages, and so on. The only way the kernel gets involved is when the userspace malloc() library decides to call brk(), sbrk(), or mmap().
On 04/15/2015 12:28 AM, 慕冬亮 wrote:
Can you give a detail of what you want to prove? I am not familiar with heap management , so I ask for the details! mudongliang
2015-04-15 0:00 GMT+08:00 <Valdis.Kletnieks@vt.edu>:
On Tue, 14 Apr 2015 23:01:58 +0800, 慕冬亮 said:
Hello Everyone: What's the rule about heap management? Especially what's the function of do_brk?
Who says there's a "rule" about it? Some userspace heap managers don't even *use* brk() or sbrk(), but instead use mmap() of an anonymous area.
To the OP, what in your mind is a Heap? Ruben
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
Ruben Safir -
Valdis.Kletnieks@vt.edu -
慕冬亮