Determine who is allocating the memory.
断定是谁在分派内存。
Worse, a cache miss when allocating an object on the heap has a particularly nasty memory interaction.
更糟的是,在堆上分配对象时,缓存遗漏还有一个特别讨厌的内存交互。
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运行时中的某些运行时例程来执行特定操作,如查找未解析的方法或分配内存。
For most collector implementations, the allocation subsystem keeps a pool of free heap memory, consumed by the application through allocating objects and replenished by the collector through sweeping.
对大多数收集器实现而言,分配子系统持有一个自由堆内存池,应用程序通过分配对象使用该池,然后由收集器通过清理来补充该池。
This was achieved through dynamic Logical Partitioning (DLPAR) -the process of dynamically allocating additional CPU or memory servers to a running LPAR.
这种功能是通过动态逻辑分区(DLPAR)实现的,也就是将附加的CPU或者内存服务器动态地分配给一个正在运行的LPAR。
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.
在从堆中分配内存时,不管上次使用内存之后留下了什么内容,内存中的内容都被当作垃圾。
The libraries that implement these requirements are called allocators, because they are responsible for allocating and deallocating memory.
实现这些需求的程序库称为分配程序(allocators),因为它们负责分配和回收内存。
Another common problem with allocating database Shared memory on Solaris is due to the fact that all pages of a Shared memory segment are pinned in physical RAM.
Solaris中另一个与分配数据库共享内存有关的常见问题是由于这样的一个事实导致的,即共享内存段的所有页都是固定在物理ram中的。
Allocating blocks of zero-filled memory the library may need.
分配程序库可能需要的由零填充的内存块。
This algorithm tends to be memory efficient (allocating what's necessary) but requires more time to manage the heap.
这种算法通常具有较高的内存使用效率(分配需要的内存),但是却需要花费更多时间来对堆进行管理。
The StringBuilder class in the System.Text namespace joins strings together without allocating a new string instance each time; this efficiency greatly improves memory utilization.
Text命名空间中的StringBuilder类无须每次分配新的字符串实例即可将字符串连接在一起;这一效率大大改进了内存的利用。
Mempool_alloc is for allocating objects; if the mempool allocator fails to provide memory, then the pre-allocation pool will be used.
mempool_alloc用来分配对象;如果内存池分配器无法提供内存,那么就可以用预分配的池。
If you're allocating native resources (memory on the native heap, file descriptors, or whatever), it can be significantly more difficult to arrange timely collection of these resources.
如果你分配了native资源,及时回收这些资源是很困难的。
There might not be enough disk space to complete the file write operation, or allocating the buffer could fail if not enough memory is available.
可能没有足够的磁盘空间来完成该文件的写操作,或者由于没有足够的内存可用,分配缓冲区可能失败。
By using a constant string, you avoid allocating memory, copying the string, and the transcoding process.
通过使用常量字符串,可以避免分配内存、复制字符串和编码转换过程。
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.
在此之后,如果内核预计必须为请求内存的进程分配内存,它就会开始把一些页面交换到磁盘。
The concept involves pre-allocating a pool of memory and reserving it until it is actually needed.
其思想是预分配一个内存池,并保留到真正需要的时候。
Reserving native memory is not the same as allocating it.
保留本机内存与分配它不同。
By allocating memory outside the heap, you may subject your application to additional forces of which the JVM is unaware.
通过分配堆外面的内存,您也许使您的应用受到额外的JVM不知道的力量的管制。
What if the process was in the middle of allocating additional memory on its heap using malloc, and you call malloc from the signal handler?
如果当进程正在使用malloc在它的堆上分配额外的内存时,您通过信号处理器调用 malloc,那会怎样?
Instead of spawning a new OS thread for each connection (and allocating the accompanying memory with it), each connection fires an event run within the Node engine's process.
每个连接发射一个在Node引擎的进程中运行的事件,而不是为每个连接生成一个新的OS线程(并为其分配一些配套内存)。
At the same time, with Oracle Database 10g, make sure that the LOCK_SGA Oracle initialization parameter is set to TRUE, so that Oracle request large pages when allocating Shared memory.
同时,对于OracleDatabase10g,请确保将LOCK_SGA Oracle初始化参数设置为TRUE,这样一来,Oracle会在分配共享内存时请求较大的页面。
I'm wondering if there is another way I can convert this double into a string or char array, etc, without allocating and collecting memory each time the loop runs.
我想知道我还有另一个办法把这种双重转换成一个字符串或字符数组,等等,没有内存分配和收集每次循环运行。
An application can keep special track of a given group of allocations for debugging purposes by allocating them as this type of memory block, using explicit calls to the debug heap functions.
应用程序可以使用这种记忆体区块类型配置、使用侦错堆积函式的明确呼叫,继续追踪指定的配置群组,以达到侦错的目的。
The invention discloses a method and a device for allocating continuous physical memory in an embedded system.
本发明公开了一种嵌入式系统中连续物理内存分配方法和装置。
Increasing the collection capacity involves allocating additional collection slots, which incurs both performance and memory overhead.
增大集合容量包括分配更多的集合槽,这会影响性能和内存开销。
The memory structure, constitution of data communication channel and system bus are analyzed, and the algorithm allocating, algorithm mapping and scheduling on the multiprocessor are discussed.
对系统的存储器结构、数据通信通道组成和系统总线结构进行了分析; 讨论了算法划分、算法的多处理器映射及调度;
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.
由于运行时通过为指针添加值来为对象分配内存,所以这几乎和从堆栈中分配内存一样快。
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类型的默认构造函数依次初始化数组中的每个元素。
应用推荐