<div dir="ltr"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi,</span><br style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I recently noticed in our app that Enum.values() allocates a significant amount of memory when called in a tight loop as it clones the constant values array (which is probably for immutability, and I can understand that). I found that the same issue has been discussed back in 2012: </span><a href="http://mail.openjdk.java.net/pipermail/compiler-dev/2012-March/004210.html" style="color:rgb(17,85,204);font-size:small" target="_blank">http://mail.openjdk.java.net/pipermail/compiler-dev/2012-March/004210.html</a><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Are there any plans to address this issue going forward?<br><br>Thanks!</div><br></div>