RE: Protecting references from GC in JDI tests

2020-08-24 Thread Aditya Mandaleeka
Thanks for the replies Dan and Roger. > My recommendation would be to only use > ObjectReference.DisableCollection() > when you have observed a specific failure for a specific object in a > test. OK. I will submit an RFR soon to guard the specific case that we've observed consistently failing

Protecting references from GC in JDI tests

2020-08-17 Thread Aditya Mandaleeka
Hi serviceability-dev, I hope this is the right list for this topic, but feel free to redirect if not... It appears that there are jtreg tests that exercise JDI functionality without protecting target objects from being GC'd. An example of this is com/sun/jdi/VarargsTest.java, where references