Commit 7933ebf6 authored by Raymond Toy's avatar Raymond Toy
Browse files

Oops. Need to use long long's to compute the age in gen_av_mem_age().

parent 2daa0e7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -659,7 +659,7 @@ gen_av_mem_age(int gen)
    if (generations[gen].bytes_allocated == 0)
	return 0;

    return (((long) generations[gen].cum_sum_bytes_allocated) << MEM_AGE_SHIFT) /
    return (((long long) generations[gen].cum_sum_bytes_allocated) << MEM_AGE_SHIFT) /
	generations[gen].bytes_allocated;
}