Workaround for Hotspot collecting benchmark code

Signed-off-by: Stefan Marr <git@stefan-marr.de>
use getObject instead of getValue to access frame variables