[SPARK-3425] do not set MaxPermSize for OpenJDK 1.8

Closes #2387