We have a start-up benchmark that shows the various is_in_shared_space functions cost more than 1% of total elapsed time.
AfterJDK-8072061, all the shared regions are contiguous so we should be able to simplify these functions to a small number of pointer comparisons.
            
After
- relates to
- 
                    JDK-8178543 Optimize Klass::is_shared() -           
- Resolved
 
-         
- 
                    JDK-8212205 VM asserts after CDS archive has been unmapped -           
- Closed
 
-         
- 
                    JDK-8072061 Automatically determine optimal sizes for the CDS regions -           
- Closed
 
-