I have no idea how java handle this.. Does the AOT compiler do any optimization? Would this defer to the JIT?