弱引用 。
A weak reference is a holder for a reference to an object, called the referent.
弱引用是对一个对象(称为referent)的引用的持有者。
Returns the current generation number of the target of a specified weak reference.
返回指定弱引用的目标的当前代数。
Since this event is static, it will only hold onto the handler as a weak reference.
由于此事件为静态的,因此它仅将该处理程序保持为一个弱引用。
The point of a weak reference is to refer to an object without forcing it to stay in memory.
一点弱引用是指一个对象不强迫它留在记忆里。
GC is a thread of very low priority, so a weak reference object may not be collected immediately.
因为垃圾回收器是一个优先级很低的线程,所以弱引用对象也不一定会马上就会被回收。
If the minimum number of objects is already allocated, then a weak reference to the object is enqueued.
如果已经分配了最低数量的对象,则对象的弱引用被放置到队列中。
The reference is a weak reference, thus the naming of the weak event pattern and the related APIs.
该参考是弱式参考,因而命名为弱式事件模式和相关的API。
From above shall we say that an object can't have a soft reference and a weak reference at the same time?
从以上是否能看出,一个对象不能同时具有软引用和弱引用?
Weakly reachable: an object that is not strongly or softly reachable and can be accessed through a weak reference.
弱可及对象(weaklyreachable):不是强可及对象也不是软可及对象,并且能够通过弱引用访问的对象。
With weak references, you can maintain a reference to the referent without preventing it from being garbage collected.
使用弱引用后,可以维持对referent的引用,而不会阻止它被垃圾收集。
Weak references have two constructors: one takes only the referent as an argument and the other also takes a reference queue.
弱引用有两个构造函数:一个只取referent作为参数,另一个还取引用队列作为参数。
A weak reference permits the garbage collector to collect the object while still allowing the application to access the object.
弱引用允许应用程序访问对象,同时也允许垃圾回收器收集相应的对象。
The weak reference from the long-lived object to the short-lived object is kept long after the short-lived object has been destroyed.
在短周期对象销毁后,长周期对象对短周期对象的弱引用依然会长久保留下来。
Weak references tell the garbage collector that it should collect an object if there are no references to it other than the weak reference.
弱引用告诉垃圾收集器如果某个对象除了弱引用之外没有其他任何引用,则应该收集该对象。
In a weak reference to the need for interim targets for 2020 emission cuts, the draft simply states the global goal will be regularly reviewed.
并无强有力证据显示需要制定2020年中期减排目标,草案只是简单说明了将定期检查全球目标。
Dead mappings could be eliminated by periodically scanning the map, calling get on each weak reference, and removing the mapping if get returns null.
可以通过周期性地扫描Map,对每一个弱引用调用get,并在get返回null时删除那个映射而消除死映射。
It would be nice if there was a way to be notified when the referent of a weak reference is garbage collected, and that is what reference queues are for.
如果有一种方法可以在弱引用的referent被垃圾收集时发出通知就好了,这就是引用队列的作用。
A weak reference object will keep a reference to an object that went out of scope or was set to null, until it is actually deleted by the garbage collector.
一个弱引用对象将会保持一个指向一个超出作用域或者被置空的对象的引用,直到它确实被垃圾回收删除。
Just as with weak references, a soft reference can be created with an associated reference queue, and the reference is enqueued when it is cleared by the garbage collector.
正如弱引用一样,软引用也可创建为具有一个相关的引用队列,引用在被垃圾收集器清除时进入队列。
The Entry type, which is used to store the key-value mapping, extends WeakReference, so when expungeStaleEntries() asks for the next expired weak reference, it gets back an Entry.
用于存储键-值映射的Entry类型扩展了 WeakReference,因此当expungeStaleEntries()要求下一个失效的弱引用时,它得到一个 Entry。
If a pointer pointing to an object not in the graph, then the object is not a reachable object, and then garbage collector sets the slot to null in the long weak reference table.
如果一个指针指向一个不在图中的对象(注意此时图中已包含Finalize可到达的对象),那么此对象就是一个不可到达的对象,垃圾收集器就将长弱引用表相应的槽置空。
If a pointer pointing to an object not in the graph, then the object is not a reachable object, and then garbage collector sets the slot to null in the short weak reference table.
如果一个指针指向一个不在图中的对象,那么此对象就是一个不可到达的对象,垃圾收集器就将短弱引用表相应的槽置空。
If a finalizer (final queue) is associated with a soft or weak reference, then only after the soft or weak reference is removed is the finalizer removed on the next GC pass that is run.
如果一个finalizer (final查询)与一个soft或weak引用相关,那么只有当这个soft或weak引用删除后,这个finalizer才会在所运行的下一个GCpass上被删除。
Reference queues are not as useful with soft references as with weak references, but they could be used to raise a management alert that the application is starting to run low on memory.
引用队列对于软引用来说,没有对弱引用那么有用,但是它们可以用于发出管理警报,说明应用程序开始缺少内存。
On the other hand, when you create a weak reference to an object, you do not extend the lifetime of the referent at all; you simply maintain an alternate way to reach it while it is still alive.
另一方面,在创建对一个对象的弱引用时,完全没有扩展referent的生命周期,只是在对象仍然存活的时候,保持另一种到达它的方法。
Weak and soft references both extend the abstract reference class (as do phantom references, which will be discussed in a future article).
弱引用和软引用都扩展了抽象的reference类(虚引用(phantomreferences)也一样,这将在以后的文章中介绍)。
By analysis of explosion accident of high voltage little oil circuit breaker, found out the weak link existed on this breaker, for which proposes some Suggestions for reader reference.
通过分析一起高压少油断路器爆炸事故,从中找出断路器本身存在的薄弱环节,为此提出一些改进建议供读者参考。
In others, the company acknowledges that a difference exists - for instance, with the phrase "attenuation weak spot" only being used to reference the iPhone.
而在其它场合,它有说两者的区别是存在的——比如,“衰减弱点”这个词只用在iPhone上。
But if analyzing problems only from micro aspect will cause a great limitation against promotion and reference for overall industry because of its weak representative.
但是,这些理论存在一个很大的局限性,那就是对于企业的分析局限于微观时,对于整体行业的推广与借鉴是很困难。
应用推荐