Commit [9ad545] Maximize Restore History

opjitconv fails with "Floating point exception"

opjitconv fails with "Floating point exception" when it tries to
convert jit dump file, created by oprofile java agent libjvmti_oprofile.so.
A divide by "totaltime" when totaltime was zero caused the problem.
It is normal to have some symbol lifetife to be = 0 for very fast
invocations within one single time tick (life_start == life_end),
so this patch handles that.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
Acked-by: Daniel Hansel <daniel.hansel@linux.vnet.ibm.com>

Maynard Johnson Maynard Johnson 2013-07-24

changed opjitconv/jitsymbol.c
opjitconv/jitsymbol.c Diff Switch to side-by-side view
Loading...