What is Object Resurrection? A Java object is eligible for Garbage Collection when no other object references the object. When the JVM:s Garbage Collector eventually is about to remove an unused object, the object’s finalize() method is invoked. But, if we re-create a reference to the object again in the object’s own finalize() method, the […]

Read more

Streaming with Speedment Duke and Spire Mapping Streams. Back in the ancient 90s, we Java developers had to struggle with making our database application work properly. There was a lot of coding, debugging and tweaking. Still, the applications often blew up right in our faces to our ever increasing agony. Things gradually improved over time […]

Read more

Background In my previous post, I wrote about Escape Analysis and how the JVM can allocate non-escaping objects on the stack rather than on the heap. I immediately got a very interesting question from Caleb Cushing asking if Objects that actually can escape could be optimized anyhow, provided that the escaped object is reasonably contained by […]

Read more

This is Escape Analysis I am working on the Open Source project Speedment and for us contributors, it is important to use code that people can understand and improve. It is also important that performance is good, otherwise people are likely to use some other solution. Escape Analysis allows us to write performant code at […]

Read more

Database Connectivity Now and Then I remember back in the old (Java) days, when we were sitting up late nights and experimented a lot with Java and databases. In the beginning of the Java era, there was not much support for database connectivity and so we had to basically write your own database classes and handle […]

Read more