I don't see this as a problem in the JVM, where independently of what programming language you are using, you will use the GC configured on the JVM at launch.