在第1种情况中,我们使用了两个有内存分配问题的样本程序,使用MEMWATCH和Yet Another Malloc Debugger (YAMD)工具来调试它们。
For Scenario 1, we use two sample programs with memory allocation problems that we debug using the MEMWATCH and Yet Another Malloc Debugger (YAMD) tools.
根据程序的分配速度,系统试图预测下次需要执行垃圾收集的时间。
Based on the program's allocation rate, the system attempts to predict when the next garbage collection will be required.
恶意软件从已分配的空间溢出,压制其他程序代码,从而造成相当大的破坏。
Overflowing from its allotted space, the malware can override other program code and do considerable damage.
Why not write the program in a way where you figure out dynamically when the program is run how much memory you need rather than hard coding in two with or within that constant.
为什么不写一个可以动态的方式写那个程序,程序可以动态分配内存,而不是用常量硬编码两个值。
It gives us the power to have complete dynamism in our program.
它在我们的程序中,起着动态,分配的功能。
应用推荐