垃圾回收器执行回收,尝试为对象释放第0级托管堆中的地址空间。
The garbage collector performs a collection in an attempt to free address space in generation 0 for the object.
当数据库对象创建时,流程会创建个文档,且在数据库对象释放时关闭文档。
The procedure creates a document whenever a database object is created, and closes the document when a database object is released.
一旦对象已经从集合中移除,则引用计数减一,使其为零,因此排队对象释放。
Once the object has been removed from that set, the reference count is decreased by one, making it zero, and therefor queuing the object for deallocation.
这个范围不需要事件,因为与它相关联的对象由垃圾收集器释放,而不是由对象管理器负责。
No event is necessary for this scope because objects associated with it are released by the garbage collector rather than object managers.
最后一个阶段是简单的清理,即将对象和其他元素从内存释放。
The final phase is simply cleanup, which frees the objects and other elements from memory.
作为一个标记接口,我们认为它可以用于通知用户在可能的时候即刻释放对象。
As a marker interface, we thought it would be useful to notify users that the should eagerly release this object if possible.
这不仅使开发人员不必在代码中显式地释放对象,还可以减少内存泄漏的风险。
This not only frees the developer from responsibility for explicitly releasing objects in code, but also reduces the risk of memory leakage.
使用它通知对象管理器会话范围已经结束(或即将结束),应该释放对应的对象。
Use it to notify object managers that a session scope has ended (or is about to end) and to release the corresponding objects.
如果程序在垃圾收集器释放对象之前结束,这种情况就可能会出现。
This can occur if the program ends prior to the garbage collector freeing the object.
如果标识出每个对象的范围,就可以指定在这个范围结束时自动释放对象。
If you identify the intended scope of each object, you might specify to automatically release objects at the end of the scope.
对象是否被释放取决于垃圾收集器的算法以及垃圾收集器运行时可用的内存数量。
Whether the object is freed depends on the algorithm of the garbage collector as well as the amount of memory available while the collector is running.
使用它通知对象管理器应用程序范围已经结束,应该释放对应的对象。
Use it to notify object managers that an application scope has ended and to release the corresponding objects.
有一些用户空间解决方案可以解决这个问题。例如为父类创建一个解构函数将直接释放子对象。
There are a few user space solutions to this problem, such as creating a destructor for the parent class that will release the child object directly.
请求完成之后,可以自动释放这两个对象。
After the request is completed, both objects can be released automatically.
对于实现了析构函数释放非内存资源的对象来说,这是最常见的问题。
This is mostly a problem with objects that implement a destructor to free non-memory resources.
这时,与这个范围相关联的所有对象被自动释放回它们的池。
At that point, all objects bound to this scope are automatically released back to their pools.
在这个请求范围结束之后,它们各自的对象管理器必须释放它们。
After the request scope has ended, their individual object managers must release them.
一旦应用程序的数据访问部分已经完成,还应该关闭数据对象,以便释放与之关联的连接对象。
Data objects should also be closed once the data access part of your application is complete, so that the connection object associated with it is released too.
这时,与事务范围相关联的所有对象被自动释放回它们的池。
At that point, all objects bound to the transaction scope are automatically released back to their pools.
这时,与这个范围相关联的所有对象被自动释放回它们的池。
At that point, all objects bound to this application scope are automatically released back to their pools.
这时,与这个范围相关联的所有对象被自动释放回它们的池。
At that point, all objects bound to this session scope should be automatically released back to their pools.
您永远不必担心内存的双重释放或者对象的生命周期。
You never have to worry about double-freeing memory or object lifetimes.
使用它通知对象管理器请求范围即将结束,应该释放对应的对象。
Use it to notify the object manager that a request scope is about to end and to release the corresponding objects.
然而,请注意,垃圾收集器可能要运行多次才能找到并释放弱可及对象。
Note, however, that it may take multiple runs of the garbage collector before it finds and frees a weakly reachable object.
避免在处理器中释放内存的最好方法是,标记或记录将要释放的对象,让程序不间断地检查是否有等待被释放的内存。
The best way to avoid freeing memory in a handler is to flag or record the objects to be freed and have the program check from time to time whether anything is waiting to be freed.
当本机返回时,它不仅会释放全局引用,应用程序还无法获取引用以便稍后释放它—因此,对象将会始终存在。
When the native returns, not only has it not freed the global reference, but the application also no longer has a way to get the reference in order to free it later - so the object will live forever.
释放这个SQLXML对象。
wait释放对象锁,线程等待。
wait释放对象锁,线程等待。
应用推荐