> An intrinsic function is applied as a method substitution [...] and the compiler will replace it's apparent source-level implementation with a pre-cooked implementation. In some cases intrinsics are sort of compilation cheats [...]
> The intrinsics are all set up in vmSymbols.hpp and if you look, you'll see Arrays.fill is NOT on the list. [...] Because it is something like an intrinsic... [...] What is it then? Arrays.fill is a code pattern substitution kind of compiler shortcut, basically looking for this kind of loop:
``` for (int i = 0; i < arrayB.length; i++) { arrayB[i] = b; } ```
And replacing it with a call into the JVM memset implementation.
[0]: http://psy-lob-saw.blogspot.com/2015/04/on-arraysfill-intrin...