Also, the JVM is experimenting with escape detection, automatically putting entire object hierarchies on the stack if it is safe to do so. This sounds like in the future, manually managing what goes on the stack vs. what goes on the heap is as much of a waste of time as micromanaging garbage collection.
Exception C# (the language) will be stuck with it. On Nov 11, 8:57 pm, Ricky Clarkson <[email protected]> wrote: > C# does have value types, but that doesn't let you allocate arrays on the > stack. > > > > > > > > On Thu, Nov 11, 2010 at 7:11 PM, Casper Bang <[email protected]> wrote: > > C# has value types, so you can do stuff like allocate a large array of > > structs on the stack, which is of course much cheaper than on the heap > > since you avoid GC and (unless you do silly things) also boxing. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
