<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    敬的世界

    常用鏈接

    統(tǒng)計(jì)

    最新評(píng)論

    weak reference

    A weak reference is one that does not prevent the referenced object from being garbage collected. You might use them to manage a HashMap to look up a cache of objects. A weak reference is a reference that does not keep the object it refers to alive. A weak reference is not counted as a reference in garbage collection. If the object is not referred to elsewhere as well, it will be garbage collected.

    The GC will send some sort of "finalize" message to the object and then set any weakly-referencing variables to null whenever it disposes of the referenced object. This allows "finalization" logic to be run before the object is disposed of (e.g., close a file if still open, commit any open transaction(s), etc.). Java 1.1 does not support weak references other than via an undocumented Ref class that is not supported under Netscape. Weak references arrived officially with JDK 1.2. Java has three kinds of weak references, called soft references, weak references, and phantom references, in order of increasing weakness.

    Java has four orders of strength in holding onto Objects. In descending order from strongest to weakest they are:

    1. The JVM holds onto regular Objects until they are no longer reachable by either clients or any container. In other words Objects are garbage collected when there are no more live references to them. Dead references don’t count.
    2. Soft references can be deleted from a container if the clients are no longer referencing them and memory is tight.
    3. Weak references are automatically deleted from a container as soon clients stop referencing them.
    4. Phantom references point to objects that are already dead and have been finalised.

    posted on 2009-05-17 00:12 picture talk 閱讀(262) 評(píng)論(0)  編輯  收藏 所屬分類: Java

    主站蜘蛛池模板: 亚洲人成网站在线播放2019| 一级毛片aa高清免费观看| 免费无码又爽又刺激高潮软件| 二个人看的www免费视频| 亚洲 另类 无码 在线| 男女超爽视频免费播放| 国产精品免费电影| 黄页网站在线免费观看| 777成影片免费观看| 日韩一卡2卡3卡4卡新区亚洲| 亚洲人成黄网在线观看| 国产精品美女午夜爽爽爽免费| 亚洲一级毛片在线观| 国色精品va在线观看免费视频| 丁香五月亚洲综合深深爱| 国产在线精品一区免费香蕉| 亚洲成A人片777777| 久久国产高潮流白浆免费观看| 亚洲视频在线观看网址| 成人免费一级毛片在线播放视频| 亚洲fuli在线观看| 成年女人永久免费观看片| 黄色免费在线观看网址| 伊人久久亚洲综合| 足恋玩丝袜脚视频免费网站| 亚洲乱码国产一区三区| 日韩精品极品视频在线观看免费| 国产午夜亚洲精品国产成人小说| 热99RE久久精品这里都是精品免费| 久久亚洲AV成人无码| 色吊丝最新永久免费观看网站| 曰批免费视频播放在线看片二| 国产亚洲高清不卡在线观看| 欧洲精品成人免费视频在线观看 | 综合自拍亚洲综合图不卡区| A在线观看免费网站大全| 在线观看亚洲网站| 国产亚洲综合色就色| 无码日韩人妻av一区免费 | 久久毛片免费看一区二区三区| 久久精品亚洲日本佐佐木明希|