6981746: G1: SEGV with -XX:+TraceGen0Time

Pass correct value for length to NumberSeq constructor. Guard dereferences of "body_summary" pointer with a NULL check.

Reviewed-by: tonyp, ysr
1 file changed