8056237: [TESTBUG] gc/g1/TestHumongousShrinkHeap.java fails due to OOM
Summary: Added respect for available memory. Renamed function names
Reviewed-by: jwilhelm, tschatzl
Contributed-by: andrey.x.zakharov@oracle.com
8041946: CMM Testing: 8u40 an allocated humongous object at the end of the heap should not prevents shrinking the heap
Summary: New test added
Reviewed-by: jwilhelm, tschatzl
Contributed-by: andrey.x.zakharov@oracle.com