Skip to content

[Java] use java.lang.ClassValue to cache Lookup#844

Merged
chaokunyang merged 3 commits intoapache:mainfrom
chaokunyang:use_class_value_to_cache_lookup
Aug 6, 2023
Merged

[Java] use java.lang.ClassValue to cache Lookup#844
chaokunyang merged 3 commits intoapache:mainfrom
chaokunyang:use_class_value_to_cache_lookup

Conversation

@chaokunyang
Copy link
Copy Markdown
Collaborator

What do these changes do?

Lookup creation is not cheap.
ClassValue is thread safe, and weakref, we can use ClassValue to cache it.

Related issue number

Closes #xxxx

Check code requirements

https://bugs.openjdk.org/browse/JDK-8136353

  • tests added / passed (if needed)
  • Ensure all linting tests pass, see here for how to run them

@chaokunyang chaokunyang changed the title [Java] use java.lang.ClassValue to cache lookup [Java] use java.lang.ClassValue to cache Lookup Aug 6, 2023
@chaokunyang chaokunyang merged commit 6e53f9c into apache:main Aug 6, 2023
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