justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: As a follow up to askjf.com/index.php?q=660s, does the C runtime compact the heap to make room for new allocations as space runs out?
Asked by Will (70.173.145.x) on October 22 2014, 5:23am
Reply on October 22 2014, 12:46pm:
    The heap can't really be compacted, because all of the addresses must remain the same. So yeah, you can in theory end up with a fragmented heap where you have a lot of wasted memory, though in practice I'm not sure how often this really happens...

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS