Can you adjust the reservation size of the C heap segment on XP?

When the VC6 C runtime on XP cannot service a distribution request in an existing heap segment, it reserves a new segment. The size of these new segments increases by 2 times (until there are enough large free areas, and at this point it falls to smaller segments.)

In any case, is there a way to control this behavior on XP using the VC6 runtime? For example, doubling to a point, but the limit on segments is 64 MB.

If XP does not exist, but there are 7, it would be good to know. Or, if there is no way on VC6, but there is on VC8 or up, it would be interesting.

+4
source share
1 answer

If you need specific distribution behavior, write your own dispenser. VirtualAlloc etc. to help you with this. Using the compiler and CRT, which are still in support, would also help.

+2
source

Source: https://habr.com/ru/post/1305557/


All Articles