Optimizing Errors Away
Channel: FOSDEM
Date: 11/03/2018

by Volker Simonis

At: FOSDEM 2017

The HotSpot JIT compilers use a lot of sophisticated optimization techniquesto speed up your Java code. Sometimes, these advanced optimizations are soaggressive that they may eliminate required checks by mistake and thereforesuppress expected program errors.

In this talk, I'll briefly introduce Escape Analysis and Intrinsics, twocommonly used HotSpot optimization techniques. I'll show how a combination ofthese two features can optimize away IndexOutOfBoundsExceptions in some cornercases where they are required by the standard and how I fixed this error inrecent versions of the OpenJDK.


Room: H.1302 (Depage)
Scheduled start: 2017-02-04 12:00:00