Incorrect memory use occurs when functions used for allocating and de-allocating memory do not match.
错误的内存使用在使用内存分配和释放的函数不匹配时发生。
By using a constant string, you avoid allocating memory, copying the string, and the transcoding process.
通过使用常量字符串,可以避免分配内存、复制字符串和编码转换过程。
Understanding how DB2 USES memory prevents you from over-allocating memory, and helps you tune memory use for better performance.
理解DB 2如何使用内存,可以防止过度分配内存,并有助于对内存的使用进行调优,从而获得更好的性能。
When allocating memory from the heap, the contents of that memory are garbage — whatever bits happen to be left over from the last time that memory was used.
在从堆中分配内存时,不管上次使用内存之后留下了什么内容,内存中的内容都被当作垃圾。
Because the runtime allocates memory for an object by adding a value to a pointer, it is almost as fast as allocating memory from the stack.
由于运行时通过为指针添加值来为对象分配内存,所以这几乎和从堆栈中分配内存一样快。
Soon after that, the kernel starts swapping some of those pages to disk in anticipation of having to allocate memory to the process that's allocating memory.
在此之后,如果内核预计必须为请求内存的进程分配内存,它就会开始把一些页面交换到磁盘。
For example, the code must call certain runtime routines in the JVM runtime to perform specific actions, such as looking up an unresolved method or allocating memory.
例如,代码必须调用JVM运行时中的某些运行时例程来执行特定操作,如查找未解析的方法或分配内存。
In the first case, those objects are strings. After allocating memory to hold the objects, the default string constructor is run on each element of the array in turn.
其中第一个数组是string类型,分配了保存对象的内存空间后,将调用string类型的默认构造函数依次初始化数组中的每个元素。
In the first case, those objects are strings. After allocating memory to hold the objects, the default string constructor is run on each element of the array in turn.
其中第一个数组是string类型,分配了保存对象的内存空间后,将调用string类型的默认构造函数依次初始化数组中的每个元素。
应用推荐