title: is this a java memory leak
body: <p>update: looks like it's not a memory leak, would someone create on based on an extension of this example?<br/>
  Original question:
  Suppose I create and starts a thread that does not terminate, the thread creates an object and references as long as it's alive. See the following code.  Would the JVM garbage collect <code>x</code>?
  would this be considered a memory leak?</p>
  
  <pre><code>public class MyRunnable implements Runnable{
  
      public void run(){
        X x = new X();
        while(true){}
     }
  }
  
  Thread t = new Thread(new MyRunnable());
  t.start();
  </code></pre>