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

Introduce ClassValue-based exception constructor cache to stracktrace recovery #2997

Merged
merged 2 commits into from Nov 16, 2021

Conversation

qwwdfsad
Copy link
Member

When it's available.

The change has two purposes:

  • Provide ClassLoader leak-free implementation of ExceptionsConstructor
  • Introduce a potentially erroneous pattern in the codebase to see how good we can workaround missing Java API on Android

@qwwdfsad qwwdfsad force-pushed the class-value-exception-ctor branch 2 times, most recently from 5a9be61 to 746cd00 Compare October 26, 2021 15:59
… recovery

* It eliminates the classloader leak in containerized environments
* Insignificantly improves performance of exception copying
* Creates a precedent of guarded use of non Android-compliant API
@qwwdfsad qwwdfsad marked this pull request as ready for review November 15, 2021 16:11
Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
@qwwdfsad qwwdfsad merged commit 4b85eb6 into develop Nov 16, 2021
@qwwdfsad qwwdfsad deleted the class-value-exception-ctor branch November 16, 2021 12:37
yorickhenning pushed a commit to yorickhenning/kotlinx.coroutines that referenced this pull request Jan 28, 2022
… recovery (Kotlin#2997)

* Use ClassValue-based cache for exception constructors with stacktrace recovery
* It eliminates the classloader leak in containerized environments
* Insignificantly improves the performance of exception copying
* Creates a precedent of guarded use of non-Android-compliant API


Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
pablobaxter pushed a commit to pablobaxter/kotlinx.coroutines that referenced this pull request Sep 14, 2022
… recovery (Kotlin#2997)

* Use ClassValue-based cache for exception constructors with stacktrace recovery
* It eliminates the classloader leak in containerized environments
* Insignificantly improves the performance of exception copying
* Creates a precedent of guarded use of non-Android-compliant API


Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants