In preparation for JEP 351, generalize ZPageCache::flush() so that a closure can be passed in, which dictates what should/shouldn't be flushed. Bug: https://bugs.openjdk.java.net/browse/JDK-8222469 Webrev: http://cr.openjdk.java.net/~pliden/8222469/webrev.0 /Per