I have a java function whose documentation claims that it does no heap memory allocations.
How can I verify whether it (still) behaves as claimed, at runtime?