When running my rails app test suite against jruby-head on jdk7u40 with invokedynamic enabled I run into some java.lang.OutOfMemoryError as well as some Java::JavaLang::InternalError. See the gists below for the output.
I am able to get around the errors by changing my JRUBY_OPTS from -J-Xmx1g -J-XX:MaxPermSize=256m to -J-Xmx2g -J-XX:MaxPermSize=512m.
We have again disabled indy for anything but Java 8, so I'm going to call this one closed. Nothing we can do about the memory needed by indy stuff in Java 7, unfortunately. At least this bug is here to catch searches.