Tobias, Your mail provoked me look further into the issue of memory usage in the implementation. I now see that there is certainly the possibility for an extreme amount of memory to be used in the pathological case. I filed an issue to track this ( it has more details ), and have a proposed change in progress.
https://bugs.openjdk.java.net/browse/JDK-8186750 -Chris.