RFR: 8041946 - CMM Testing: 8u40 an allocated humongous object at the end of the heap should not prevents shrinking the heap
andrey.x.zakharov at oracle.com
Mon Jun 9 14:31:29 UTC 2014
Please, review this test for new feature in G1 - sorted free list which
make possible shrinking of the defragmented heap.
To proper testing of free list sorting we need to defragment memory with
small young and humongous objects.
This is test scenario:
- make enough space for new objects to prevent it going old.
- allocate bunch of small objects, and a bit of humongous several
- free almost all of allocated stuff. Check that heap shrinks after
I have tested it along all major platforms and it works fine. There is
lag on Solaris MXBeans about memory usage, so I need sleep by 1s.
It will be very nicely if somebody advice me about method which "flush"
memory usage info to remove this sleep.
More information about the hotspot-gc-dev