8026154: [TESTBUG] runtime/CDSCompressedKPtrs/XShareAuto.java failed due to exception
Summary: Added statements in the tests to handle failures in sharing
Reviewed-by: zgu, ctornqvi
#Path to FindbugsSettingsFile (relative)findbugs.settings.file=findbugs.settings