Profile cover photo
Profile photo
Andrew Nyago
About
Posts

Post has attachment
Andrew Nyago commented on a post on Blogger.
thanks
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
I just used Shazam to discover Body On Me by Rita Ora Feat. Chris Brown. http://shz.am/t278218930
Add a comment...

Post has attachment
It's a nice live sports stats app.
Add a comment...

Post has attachment
This sample on the slim framework has saved me a lot of headaches.
Add a comment...

Post has attachment

Post has attachment
Advanced REST client
Advanced REST client
chrome.google.com
Add a comment...

Post has attachment

Post has shared content
Today I''ve read this excellent post by +Pierre-Yves Ricau.

Obviously the Dalvik VM uses an optimization that was once used in the stock Java VM as well. And dropped for good reasons in later VMs.

For some history here's a quote of a very old book from within SUN's Java series books (section A.3.3 Invisible (!) objects):

public void run() {
   try {
      Object foo = new Object();
      foo.doSomething();
   } catch (Exception e) {
      // whatever
   }
   while (true) { // do stuff } // loop forever
}

In this example, the object foo falls out of scope when the try block finishes. It might seem that the foo temporary reference variable would be pulled off the stack at this point and the associated object would become unreachable. After all, once the try block finishes, there is no syntax defined that would allow the program to access the object again. However, an efficient implementation of the JVM is unlikely to zero the reference when it goes out of scope. The object referenced by foo continues to be strongly referenced, at least until the run method returns. In this case, that might not happen for a long time. Because invisible objects can't be collected, this is a possible cause of memory leaks. If you run into this situation, you might have to explicitly null your references to enable garbage collection.

Note: This quote is from 2000 :-)
Add a comment...
Wait while more posts are being loaded