Can I measure the size of a List in the memory including elements using Instrumentation.getObjectSize?

As far as I can see java.lang.instrument.Instrumentation.getSize returns the size without elements (as the size doesn't depend on the number of the list. It is 24 bytes). Looks strange. Is that correct that list items are not measured?...

Read More »

By: StackOverFlow - 5 days ago

Related Posts