Loop optimizations Oracle Java 7-8 Hotspot VM
Asked Answered
S

1

9

I would like to know what are the loop optimizations performed by Oracle Java 7 (or 8) Hotspot VM?

Sang answered 1/10, 2015 at 14:16 Comment(4)
The compiler writers possibly could ... but I doubt that they would. Anyway, if you really need to know you can always download the OpenJDK source tree and figure it out for yourself.Longevous
The main ones will probably be deadcode elimination, loop unrolling and variable hoisting.Ethylene
@ The close voters: In how far is this asking for an off-site resource? Look at the current answer. (Of course, it has lots of links in it, but these are only pointers to a durable resource (namely, the OpenJDK source), and intended for further research).Sair
@ The close voters: I have edited my question 2 days a go. Can you check this please? ThanksSang
B
28
Bloodmobile answered 3/10, 2015 at 13:10 Comment(3)
you did a hell of research here! +Integer.MaxInt to you!Sang
Very helpful! Her's some complementary info: VectorizaAon in HotSpot JVM by Vladimir Ivanov, HotSpot JVM Compiler, Oracle Corp. April 8, 2017Bastard
More recent version of that great presentation: cr.openjdk.java.net/~vlivanov/talks/…Elflock

© 2022 - 2024 — McMap. All rights reserved.