Skip to content

Backport ClassBuilder fix#117

Open
prdoyle wants to merge 1 commit intovenasolutions:developfrom
boskworks:backport-classbuilder-fix
Open

Backport ClassBuilder fix#117
prdoyle wants to merge 1 commit intovenasolutions:developfrom
boskworks:backport-classbuilder-fix

Conversation

@prdoyle
Copy link
Copy Markdown
Contributor

@prdoyle prdoyle commented Jul 7, 2024

From boskworks@3d3b2b6

Explanation

Previously, we were calling Map.remove in an invokedynamic bootstrap method, because once the bootstrap was complete, the map entry was no longer needed.

The problem is, under certain circumstances, the JVM is allowed to call the bootstrap method multiple times. Since we had removed the map entry, subsequent calls would fail.

It's not clear whether this caused any actual problems, or merely threw spurious exceptions. I didn't observe any test failures caused by this problem, but I thought we're better safe than sorry.

Risk

This change causes some more memory to be retained in the form of entries in the CALL_SITES_BY_NAME map. The way Vena uses bosk, I'd guesstimate this will consume an extra few kilobytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant