Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make getMethodID/findClass pure #20

Closed
alpmestan opened this issue Feb 29, 2016 · 1 comment
Closed

Make getMethodID/findClass pure #20

alpmestan opened this issue Feb 29, 2016 · 1 comment
Milestone

Comments

@alpmestan
Copy link
Contributor

When one of these two functions is called with a literal method name, the compiler can automatically float the call to top level and make it a CAF, thus seamlessly sharing method lookups across all callers.

Methods are static objects: they don't change over time. Unless of course you take into account class unloading. But that's like saying all calls to any function in any dynamic library should be in IO, because the library could be unlinked from the address space conceivably.

Alternatively, the user could memoize calls manually, by maintaining and passing around hash tables. This is obviously less than ideal.

@mboes
Copy link
Member

mboes commented Nov 8, 2016

This issue was moved to tweag/inline-java#5

@mboes mboes closed this as completed Nov 8, 2016
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

No branches or pull requests

2 participants