JDK-8017084 has helped improve performance and code size for object literal allocation, but this does not work for numerical keys which are stored in arraydata instead of spill.
The attached big object literal still causes java.lang.RuntimeException: Method code too large.