Optimizing Errors Away

45 views · Published 11 March 2018 · 26:28 · Indexed 26 October 2026

Channel: FOSDEM · 2018 · Science & Technology

Watch on YouTube

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

More from this channel