RFR (JDK 10) 8172298: Reduce memory churn when linking VarHandles operations
Aleksey Shipilev
shade at redhat.com
Mon Jan 30 10:59:23 UTC 2017
On 01/28/2017 12:10 AM, Paul Sandoz wrote:
> http://cr.openjdk.java.net/~psandoz/jdk10/JDK-8172298-varhandle-link-reduce-memory/webrev/
Looks good, but I think the StringBuilder is inefficiently sized: it adds
(parameterCount() - 2) chars in the loop, skipping the first and and then two
after the loop. So the total number of chars is exactly (prefix +
parameterCount()), not +2?
Thanks,
-Aleksey
More information about the core-libs-dev
mailing list