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

Kelvin Nilsen kdnilsen at openjdk.org
Tue Aug 6 20:20:51 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

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

Marked as reviewed by kdnilsen (Committer).

PR Review: https://git.openjdk.org/shenandoah/pull/466#pullrequestreview-2222165364


More information about the shenandoah-dev mailing list