This is a follow up to 6736341. There seems to be some inconsistency when taking into account _shared_space_size in the calculations in CompactingPermGenGen. The virtual space for the perm gen does not actually include the shared space. However, the calculations in max_capacity() and contiguous_available() do use _shared_space_size in the calculation. We need to clarify whether this is correct.