This change was made on java7 itself that the constant pool was moved to a typical heap space from the permg space (nevertheless, the pool behavior is the same) when the perm space is completely removed in Java 8. Metaspace has nothing to do with the pool constant specifically, it is common to all objects.
source
share