What does the java option -XX:-EliminateAllocations do? I couldn't find any documentation about it.
This key disables "Scalar replacement optimization"
Simply spoken when an object is identified as non-escaping the JVM can replace its allocation on the heap with an allocation of its members on the stack which mitigates the lack of user guided stack allocation. The optimization is enabled by default since JDK 6U23 in the hotspot server compiler.