Before invoking System.gc(), I used jmap heap to check that the tenured generation occupies 0mb of space. After invoking System.gc(), the tenured generation occupies more than 0mb of space.
The object I created does not have a large object.
Only triggered FGC once and did not trigger YGC.
New contributor
qwee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.