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

biz被卸载时bizclassloader类加载行为被改变 #796

Open
yuanyuancin opened this issue Nov 30, 2023 · 4 comments
Open

biz被卸载时bizclassloader类加载行为被改变 #796

yuanyuancin opened this issue Nov 30, 2023 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@yuanyuancin
Copy link
Collaborator

原因

  1. 缓存被清理com.alipay.sofa.ark.container.service.classloader.AbstractClasspathClassLoader#classCache
  2. hook失效 com.alipay.sofa.ark.container.service.classloader.BizClassLoader#postLoadClass
    image

可能存在的问题
在中间件兼容性不够完善等特殊场景中,模块被卸载后仍旧有很大可能会存在bizclassloader.loadclass()的行为,如果打破了该行为会导致不预期的ClassNotFoundException或NoClassDefFoundError

jdk规范中classloader close后,通常会禁止新class define,但是仍旧会允许get loaded class

Copy link

github-actions bot commented Jan 1, 2024

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 1, 2024
@lvjing2 lvjing2 removed the stale label Jan 1, 2024
Copy link

github-actions bot commented Feb 1, 2024

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 1, 2024
@lvjing2 lvjing2 removed the stale label Feb 3, 2024
Copy link

github-actions bot commented Mar 5, 2024

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 5, 2024
Copy link

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue or help wanted. Thank you for your contributions.

@lvjing2 lvjing2 reopened this Mar 13, 2024
@lvjing2 lvjing2 added good first issue Good for newcomers and removed stale labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants