<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>779</bug_id>
          
          <creation_ts>2013-07-11 05:05:07 +0200</creation_ts>
          <short_desc>NEWT: Use WeakReferences for Display, Screen and Window Caches</short_desc>
          <delta_ts>2013-07-11 05:05:58 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>99479bf3197cde8e89c5b499d135417863d521c7
d4c022b6b0fe7c3553c7ae218758d6e062905e10</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2796</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-07-11 05:05:07 +0200</bug_when>
    <thetext>Removing ref. at API destroy() is wrong ; Allow GC to clear ..

    - Removing ref. at API destroy() is wrong
      - Since all instances can be recreated, removing ref at destroy() is simply wrong.
      - Keep weak references until GC collects, i.e. user does not claim them anymore.
        - Safe for Display, since it holds it&apos;s EDT thread.
        - Window/Screen .. if user abandons reference .. nothing we can do here.
    
    - Allow GC to clear ..
      No need to hold ref loonger than user.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>