When the test receives an ExceptionEvent, the exception object can be collected 
if the SUSPEND_NONE policy is being used, resulting in an 
ObjectCollectedException when referencing event.exception(). The exception 
should be handled and not cause the test to fail.

I'm not sure if this fixes all the issues with 8372555. I suspect there is 
something else going on that has a side affect of triggering the collection of 
the exception object, but this is at least a first step towards figuring out if 
there is more too this bug.

-------------

Commit messages:
 - handle ObjectCollectedException

Changes: https://git.openjdk.org/jdk/pull/28652/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28652&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8372555
  Stats: 11 lines in 1 file changed: 9 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/28652.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28652/head:pull/28652

PR: https://git.openjdk.org/jdk/pull/28652

Reply via email to