We can fix both JDK-6515172 and JDK-8144312 by doing the autconf detection of how to count the number of allowed processors, then actually measuring what's available during the build, and also fixing the hotspot implemementation of Runtime.availableProcessors.