[code-reflection] RFR: Code model attribute [v2]
Adam Sotona
asotona at openjdk.org
Tue Nov 26 18:46:22 UTC 2024
> This is experimental serialization of code model into a custom method attribute.
>
> I've performed brief comparison on `BytecodeTest` as a representant of class with majority of methods annotated with `@CodeReflection`.
>
> Compiled size of the `BytecodeTest` class (with text-encoded code models) is 121288 bytes, CP contains 1612 entries.
> Cleaned size of the class (removed text-encoded code models and their static initialization) is 32801 bytes, CP contains 1277 entries.
> Size with models encoded in custom attributes is 74541 bytes, CP contains 1435 entries.
>
> Proportional size of the custom attributes vs. text-encoded fields is 37% (47% of the CP entries).
Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
CodeModeAtrtribute documentation work in progress
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/282/files
- new: https://git.openjdk.org/babylon/pull/282/files/e8a63d84..ea9ebccb
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=282&range=01
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=282&range=00-01
Stats: 33 lines in 1 file changed: 33 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/babylon/pull/282.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/282/head:pull/282
PR: https://git.openjdk.org/babylon/pull/282
More information about the babylon-dev
mailing list