Tag: ca7ce82a280a65c377c24c95c29b1dec6e80b428

perf tests: Do not use sizeof on pointer type

Author: Vaishali Thakkar <vaishali.thakkar@oracle.com> Using sizeof on a malloced pointer type will return the wordsize which can often cause one to allocate a buffer much smaller than it is needed. So, here do not use sizeof on pointer type. Note that this has no effect on runtime because ‘dsos’ is a pointer to a pointer. …

Continue reading