We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Optimizing Errors Away

Formal Metadata

Title
Optimizing Errors Away
Title of Series
Number of Parts
611
Author
License
CC Attribution 2.0 Belgium:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language
Production Year2017

Content Metadata

Subject Area
Genre
Abstract
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.