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

LDEV-4745 address issue where classes are not fetched from class loader when they already exist #2267

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DominicWatson
Copy link
Contributor

This appears to arise when the PageSource for a page is flushed/cleared but when the class still exists in the class loader and using the latest version of the source.

Fix works by checking whether we already have a compiled binary class file that is newer than source file and attempting to fetch the class from the class loader.

Would be good to get a simple test case for this to add to the test suite. I was able to reproduce this in Lucee 5.4 with a Preside application with a lot of loaded classes. Page source appeared to be cleared in high memory usage scenarios. This change (slightly different in 5.4) resolved completely.

…er when they already exist

This appears to arise when the PageSource for a page is flushed/cleared but when the class
still exists in the class loader and using the latest version of the source.

Fix works by checking whether we already have a compiled binary class file that is newer than
source file and attempting to fetch the class from the class loader.
@CLAassistant
Copy link

CLAassistant commented Nov 2, 2023

CLA assistant check
All committers have signed the CLA.

@DominicWatson DominicWatson changed the base branch from 6.0 to master November 2, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants