[code-reflection] RFR: Bytecode locals compaction [v3]
Adam Sotona
asotona at openjdk.org
Wed Sep 11 08:10:22 UTC 2024
On Tue, 10 Sep 2024 22:53:36 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
>>
>> added comments
>
> src/java.base/share/classes/java/lang/reflect/code/bytecode/BytecodeGenerator.java line 355:
>
>> 353: // Some of the operations can be deferred
>> 354: private boolean canDefer(Op op) {
>> 355: Boolean can = deferCache.get(op);
>
> Use `computeIfAbsent`?
Unfortunately `computeIfAbsent` throws `ConcurrentModificationException` in this case. This method is not usable when the computation causes more additions to the map.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/224#discussion_r1753518849
More information about the babylon-dev
mailing list