<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Artima Article: &amp;quot;Myths of Memory Management&amp;quot;</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Sat, 25 May 2013 11:50:53 -0400</pubDate>


    <item>

        <title>I agree that resource management</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<p>I agree that resource management is an important topic. When a resource is no longer needed, you need to know that resource is returned to the system. I know that in most cases, developers do not need to set a reference to null. There are a lot of...]]></description>
        

        <pubDate>Mon, 28 Nov 2011 21:47:38 -0500</pubDate>

        

        <jf:creationDate>Mon, 28 Nov 2011 21:47:38 -0500</jf:creationDate>
        <jf:modificationDate>Mon, 28 Nov 2011 21:47:38 -0500</jf:modificationDate>
        <jf:date>Nov 28, 2011</jf:date>
        <jf:author>PaulWeb</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>setting refs to null is code smell</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[One point about my code example above.  There is nothing special about assigning the ref to null.  It's not that the ref is null that allows the array to be GC'd, it' that there are no longer any refs pointing to it.  For example,<br><br>array = new...]]></description>
        

        <pubDate>Mon, 19 Sep 2005 14:25:36 -0400</pubDate>

        

        <jf:creationDate>Mon, 19 Sep 2005 14:25:36 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 19 Sep 2005 14:25:36 -0400</jf:modificationDate>
        <jf:date>Sep 19, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>setting refs to null is code smell</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>array = new int[300000];</blockquote><br>That will compile as:<br><blockquote>iconst 300000<br>inewarray<br>astore array</blockquote><br>After the inewarray op, the stack will contain a reference to a new array of 300000 ints, and the...]]></description>
        

        <pubDate>Fri, 16 Sep 2005 22:33:57 -0400</pubDate>

        

        <jf:creationDate>Fri, 16 Sep 2005 22:33:57 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 16 Sep 2005 22:33:57 -0400</jf:modificationDate>
        <jf:date>Sep 16, 2005</jf:date>
        <jf:author>Cameron Purdy</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>interesting</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>Here's an example of the issue:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;public static void main(String[] args)<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int[] array =...]]></description>
        

        <pubDate>Fri, 16 Sep 2005 13:19:53 -0400</pubDate>

        

        <jf:creationDate>Fri, 16 Sep 2005 13:19:53 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 16 Sep 2005 13:19:53 -0400</jf:modificationDate>
        <jf:date>Sep 16, 2005</jf:date>
        <jf:author>peter lin</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>setting refs to null is code smell</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[Here's an example of the issue:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;public static void main(String[] args)<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int[] array =...]]></description>
        

        <pubDate>Fri, 16 Sep 2005 12:43:03 -0400</pubDate>

        

        <jf:creationDate>Fri, 16 Sep 2005 12:43:03 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 16 Sep 2005 12:43:03 -0400</jf:modificationDate>
        <jf:date>Sep 16, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>3</jf:replyCount>
    </item>


    <item>

        <title>setting refs to null is code smell</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>If nulling is important as you insist, then the compiler should automatically do it after the loop.  If the compiler doesn't do this, then maybe it isn't as important as you claim.</blockquote><br>I amazes me that some poeple think that...]]></description>
        

        <pubDate>Fri, 16 Sep 2005 11:59:03 -0400</pubDate>

        

        <jf:creationDate>Fri, 16 Sep 2005 11:59:03 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 16 Sep 2005 11:59:03 -0400</jf:modificationDate>
        <jf:date>Sep 16, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>4</jf:replyCount>
    </item>


    <item>

        <title>setting refs to null is code smell</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>In a loop like this:while (condition) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Object o = getBigObject();}it's normally fine to leave this alone.  However, since o will generally be compiled out to a method level reference, it holds onto the...]]></description>
        

        <pubDate>Thu, 15 Sep 2005 16:31:13 -0400</pubDate>

        

        <jf:creationDate>Thu, 15 Sep 2005 16:31:13 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 15 Sep 2005 16:31:13 -0400</jf:modificationDate>
        <jf:date>Sep 15, 2005</jf:date>
        <jf:author>Brian Miller</jf:author>
        <jf:replyCount>5</jf:replyCount>
    </item>


    <item>

        <title>Artima Article: &amp;quot;Myths of Memory Management&amp;quot;</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>Am I missing something in your scenario ?</blockquote><br>Yes. You need to also count the time it took to start the JVM, etc. That way he can win his argument ;-)<br><br>Peace,<br><br>Cameron Purdy<br><a...]]></description>
        

        <pubDate>Thu, 15 Sep 2005 07:34:29 -0400</pubDate>

        

        <jf:creationDate>Thu, 15 Sep 2005 07:34:29 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 15 Sep 2005 07:34:29 -0400</jf:modificationDate>
        <jf:date>Sep 15, 2005</jf:date>
        <jf:author>Cameron Purdy</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Artima Article: &amp;quot;Myths of Memory Management&amp;quot;</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[[Same test ran with an array of just 512 elements gives:<br>0.146s c++/stack, 0.270s c++/heap, 11.158s Java/modern JVM ;) and 6.67s GCJ/native.<br><br>Care to prove the benchmark's flawed? Care to try it yourself?]<br><br>I actually tried, using this...]]></description>
        

        <pubDate>Wed, 14 Sep 2005 14:28:15 -0400</pubDate>

        

        <jf:creationDate>Wed, 14 Sep 2005 14:28:15 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 14 Sep 2005 14:28:15 -0400</jf:modificationDate>
        <jf:date>Sep 14, 2005</jf:date>
        <jf:author>Arkady Bari</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>99.999% sure it's not XStream</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote><blockquote><blockquote>I used XStream to serialize the request into object and back out to XML.</blockquote>I don`t know anything about XStream but it could hold a reference to the root node of the Objects.  It could even put it in a static...]]></description>
        

        <pubDate>Wed, 14 Sep 2005 10:16:43 -0400</pubDate>

        

        <jf:creationDate>Wed, 14 Sep 2005 10:16:43 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 14 Sep 2005 10:16:43 -0400</jf:modificationDate>
        <jf:date>Sep 14, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Kodo</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote><blockquote>This website is a poor adverstisment for kodo.  I`ll probably give it a thumbs down if someone asks about it.</blockquote>James - that's definitely the wrong conclusion. You should talk to Floyd before deciding on whom to blame....]]></description>
        

        <pubDate>Wed, 14 Sep 2005 10:13:23 -0400</pubDate>

        

        <jf:creationDate>Wed, 14 Sep 2005 10:13:23 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 14 Sep 2005 10:13:23 -0400</jf:modificationDate>
        <jf:date>Sep 14, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>99.999% sure it's not XStream</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote><blockquote>I used XStream to serialize the request into object and back out to XML.</blockquote><br>I don`t know anything about XStream but it could hold a reference to the root node of the Objects.  It could even put it in a static...]]></description>
        

        <pubDate>Wed, 14 Sep 2005 10:06:30 -0400</pubDate>

        

        <jf:creationDate>Wed, 14 Sep 2005 10:06:30 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 14 Sep 2005 10:06:30 -0400</jf:modificationDate>
        <jf:date>Sep 14, 2005</jf:date>
        <jf:author>peter lin</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Kodo</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>This website is a poor adverstisment for kodo.  I`ll probably give it a thumbs down if someone asks about it.</blockquote><br>James - that's definitely the wrong conclusion. You should talk to Floyd before deciding on whom to blame. I'll give...]]></description>
        

        <pubDate>Tue, 13 Sep 2005 16:15:45 -0400</pubDate>

        

        <jf:creationDate>Tue, 13 Sep 2005 16:15:45 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 13 Sep 2005 16:15:45 -0400</jf:modificationDate>
        <jf:date>Sep 13, 2005</jf:date>
        <jf:author>Cameron Purdy</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Kodo</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[This website is a poor adverstisment for kodo.  I`ll probably give it a thumbs down if someone asks about it.]]></description>
        

        <pubDate>Tue, 13 Sep 2005 16:00:48 -0400</pubDate>

        

        <jf:creationDate>Tue, 13 Sep 2005 16:00:48 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 13 Sep 2005 16:00:48 -0400</jf:modificationDate>
        <jf:date>Sep 13, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>just guessing</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=36362</link>

        

        
            <description><![CDATA[<blockquote>I used XStream to serialize the request into object and back out to XML.</blockquote><br>I don`t know anything about XStream but it could hold a reference to the root node of the Objects.  It could even put it in a static reference.  It could...]]></description>
        

        <pubDate>Tue, 13 Sep 2005 15:59:12 -0400</pubDate>

        

        <jf:creationDate>Tue, 13 Sep 2005 15:59:12 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 13 Sep 2005 15:59:12 -0400</jf:modificationDate>
        <jf:date>Sep 13, 2005</jf:date>
        <jf:author>James Watson</jf:author>
        <jf:replyCount>5</jf:replyCount>
    </item>



</channel>
</rss>

