This article introduced the LMMPWT pattern for simplifying scoped memory usage.
本文引入了LMMPWT模式以简化作用域内存的使用。
This article introduces a technique that you can use to simplify scoped memory usage.
本文引入的这种技术可以让您简化作用域内存的使用。
Objects created in scoped memory live for the lifetime of the scope they are created in.
在作用域内存中创建的对象则在于其中创建它们的作用域的生命周期中存在。
Set aside an area of scoped memory large enough to perform the error-handling operation.
预留出足够大的作用域存储区来执行错误处理操作。
Once all objects in the scoped memory are no longer referenced the memory is freed to be used again.
一旦scoped内存中的所有对象都不再被引用了,它就会被释放以备再次使用。
IllegalThreadStateException is thrown when code that enters scoped memory areas is run by regular threads.
当进入范围内存区域的代码由常规线程运行时,将抛出IllegalThreadStateException。
To ensure the integrity of the heap and the immortal memory area, the RTSJ defines rules for using scoped memory.
为确保堆和不朽内存区域的完整性,RTSJ定义了使用作用域内存的规则。
Because of these complexities, the recommended use of immortal and scoped memory is limited to components that cannot tolerate GC pauses.
由于这些复杂性,建议只对那些不能够忍受GC暂停的组件使用不朽和作用域内存。
For this technique to be robust, the tasks you perform must be bounded so you can predict and calibrate the amount of scoped memory required.
要使此技术更为健壮,您执行的任务必须是限定的,那样您才能够预测并校准所需的作用域内存数量。
Each area of scoped memory has a reference count; when a thread enters an area of scoped memory, the reference count is incremented, and when it leaves, the reference count is decremented.
作用域内存的每个区域都有一个引用计数;一个线程进入scoped内存的一个区域时,该引用计数将递增,当该线程离开时,引用计数则递减。
Scoped memory is memory that has a lifetime defined by the developer of an application.
Scoped内存就是一块内存,它有一个由应用程序开发者定义的生命期。
Scoped memory is memory that has a lifetime defined by the developer of an application.
Scoped内存就是一块内存,它有一个由应用程序开发者定义的生命期。
应用推荐