RFR: 8256741: Reduce footprint of compiler interface data structures
Chris Plummer
cjplummer at openjdk.java.net
Fri Nov 20 22:24:16 UTC 2020
On Fri, 20 Nov 2020 12:19:48 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> A few data structure in the ci allocate unconditionally created GrowableArrays out-of-line, have fields that are newer updated/read, or are unnecessarily cached. By cleaning this up we can slightly reduce memory used for JIT compilations while slightly speeding them up.
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/ci/ciObjectFactory.java line 82:
> 80: public GrowableArray<ciSymbol> symbols() {
> 81: Address addr = getAddress().addOffsetTo(symbolsField.getOffset());
> 82: return GrowableArray.create(addr, ciSymbolConstructor);
It's unclear to me why these two changes were needed. Don't they produce the same result before and after?
-------------
PR: https://git.openjdk.java.net/jdk/pull/1346
More information about the serviceability-dev
mailing list