分配对象的参数变量。
C+ +向程序员提供了在堆或堆栈中分配对象的选择。
C + + offers programmers a choice of allocating objects on the heap or on the stack.
应用程序线程在并行收集进行中可以同时分配对象。
The application can allocate objects while the concurrent collection is going on.
更糟的是,在堆上分配对象时,缓存遗漏还有一个特别讨厌的内存交互。
Worse, a cache miss when allocating an object on the heap has a particularly nasty memory interaction.
NET内存分配数据,这些数据显示已分配对象的大小和数目。
NET memory allocation data that shows you the size and number of allocated objects.
在分析运行期间创建的,此函数的所有非独占分配对象数的百分比。
The percentage of all objects that were created in the profiling run that were inclusive allocations of this function.
所以,在堆上分配对象,比起在堆栈上分配对象,会带来更多缓存遗漏。
As a result, allocating an object on the heap will likely entail more cache misses than allocating that object on the stack.
要创建一个新对象(这里是将返回的字符串),首先分配对象,然后初始化对象。
To create a new object (in this case, the string that will be returned), first alloc the object and then initialize it.
如果在用户界面周期内分配对象,就会强制一个周期性的垃圾回收,给用户体验增加小小的停顿间隙。
If you allocate objects in a user interface loop, you will force a periodic garbage collection, creating little "hiccups" in the user experience.
这在支持很多不同类型功能的大型应用程序中可能很重要,因为只有在实际使用该类时,才会分配对象的内存。
This might be important in large applications that support many different types of functionality, since the memory for the object is only allocated if the class is actually used.
每一个线程(不处理)有一个线程本地分配缓冲区(TLAB),分配对象是廉价的,线程安全的。
Each thread (not processor) has a thread Local allocation Buffer (TLAB) so that object allocation is cheap and thread-safe.
mempool_alloc用来分配对象;如果内存池分配器无法提供内存,那么就可以用预分配的池。
Mempool_alloc is for allocating objects; if the mempool allocator fails to provide memory, then the pre-allocation pool will be used.
在分析运行期间创建的,由调用关系树中的父函数调用的所有函数实例的所有非独占分配对象数的百分比。
The percentage of all objects that were created in the profiling run that were exclusive allocations of the function instances that were called by the parent function in the call tree.
对大多数收集器实现而言,分配子系统持有一个自由堆内存池,应用程序通过分配对象使用该池,然后由收集器通过清理来补充该池。
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.
如果应用程序非常依赖短期存活的类加载器,且托儿所收集能够及时处理其他已分配对象,那么保留区收集可能不会频繁发生。
If an application relies heavily on short-lived class loaders, and nursery collections can keep up with any other allocated objects, then tenure collections might not happen very frequently.
当不知道从哪个内存区域分配对象或者特定范围位于范围堆栈上的何处时,可能发生IllegalAssignmentError。
An IllegalAssignmentError can be introduced when it isn't known which memory area an object is allocated from, or where on the scope stack a particular scope is located.
当你分配对象的子对象时,如果子对象的生存时间和父对象基本相同,他们应该被同时分配以使他们在GC堆中的位置也是相近的。
When you allocate the children of an object, if the children need to have similar life time as their parent they should be allocated at the same time so they will stay together on the GC heap.
大型对象的分配对很多GC策略都是件棘手的事情。
The allocation of large objects can be troublesome for many GC strategies.
可以在指定新专员时分配对多个对象的责任,也可以在ManageStewards页面上编辑专员时指定责任。
You can assign responsibility for multiple objects when you designate a new steward or when you edit a steward on the Manage Stewards page.
可以在指定新专员时分配对多个对象的责任,也可以在ManageStewards页面上编辑专员时指定责任。
You can assign responsibility for multiple objects when you designate a new steward or when you edit a steward on the Manage Stewards page.
应用推荐