RFR: 8337847: [GenShen] jdk.test.whitebox.Whitebox.isObjectInOldGen misreports

Y. Srinivas Ramakrishna ysr at openjdk.org
Wed Aug 7 14:48:52 UTC 2024


On Tue, 6 Aug 2024 01:32:00 GMT, Y. Srinivas Ramakrishna <ysr at openjdk.org> wrote:

> **Summary**
> 
> The whitebox test method `jdk.test.whitebox.Whitebox.isObjectInOldGen` was not correctly implemented for GenShen. It reports only whether the object is in the heap, not whether it's in the old gen, which is its specification.
> 
> Upon fixing the implementation for GenShen, a regression test was found to be too tight in insisting that a full GC should promote objects into the old generation. The test was fixed, for the case of GenShen, such that it would not insist on this behavior.
> 
> **Testing:**
> 
> - [x] GHA
> - [x] hotspot/jtreg

Thanks Kelvin.

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

PR Comment: https://git.openjdk.org/shenandoah/pull/466#issuecomment-2273648502


More information about the shenandoah-dev mailing list