The PR resolves the issue JDI has with allowing collection of objects that are returned by the JDI invoke API before the caller of the API has a chance to call ObjectReference.disableCollection(). Details in the first comment.
Consider this to be a prototype. I'm open to discussion on other possible solutions. I also still need to update the JDI specs to reflect these changes. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - fix some jcheck whitespace errors - fix some jcheck whitespace errors - cleanup some comments - add support for diabling gc on returned objects Changes: https://git.openjdk.org/jdk/pull/31421/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31421&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8311176 Stats: 404 lines in 8 files changed: 396 ins; 0 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/31421.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31421/head:pull/31421 PR: https://git.openjdk.org/jdk/pull/31421
