Updated serviceability/jvmti/HeapMonitor/MyPackage/ tests to handle IdentityException to unblock work on throwing IdentityException from NewWeakGlobalRef. It's not yet decided how would be better to update SampledObjectAlloc
------------- Commit messages: - 8379258 Changes: https://git.openjdk.org/valhalla/pull/2230/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2230&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8379258 Stats: 25 lines in 1 file changed: 19 ins; 4 del; 2 mod Patch: https://git.openjdk.org/valhalla/pull/2230.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2230/head:pull/2230 PR: https://git.openjdk.org/valhalla/pull/2230
