8199342 The constant pool forgets it has a Dynamic entry if there are overpass methods

Paul Sandoz paul.sandoz at oracle.com
Fri Mar 9 01:45:19 UTC 2018


Please review the following patch:

http://cr.openjdk.java.net/~psandoz/jdk/JDK-8199342-constant-dynamic-and-overpass-methods/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk/JDK-8199342-constant-dynamic-and-overpass-methods/webrev/>

This fixes a crash due to an assert with debug builds. 

On class initialization we set a flag if the constant pool contains a Dynamic entry. If the class file is an interface and there are overpass methods then parts the constant pool gets re-written by copying the old pool to a new pool, but that process does not copy over the flag.


More information about the hotspot-dev mailing list