-
Notifications
You must be signed in to change notification settings - Fork 723
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
Ensure addClassFromCPRecord emits CP record #20680
base: master
Are you sure you want to change the base?
Conversation
The addClassFromCPRecord method of the symbol validation manager should make sure that a ClassFromCPRecord is always added to the current compilation. Signed-off-by: Christian Despres <[email protected]>
@dsouzai I'm fairly sure that a ClassFromCPRecord needs to be added here if the class hasn't already been remembered. I can't see a reason why it can be skipped, at least. |
I have tested this to see if it helped with #20529 (comment), and unfortunately it does not. I'm curious - if this record does need to be added, do we need to make sure that a ClassFromCPRecord is added for these as well? openj9/runtime/compiler/runtime/SymbolValidationManager.cpp Lines 853 to 873 in 395aab5
In the compilation in the linked comment, a |
I tried #20680 (comment), but it seemed to result in a very large number of class from CP validation failures at load time. It might be |
I should test this a bit more. |
This was done in #4694; as per the commit message:
|
That does make sense. I noticed that class from CP records were often skipped. I'm trying something else to try to resolve the validation failures related to CP entries with dependency tracking; since the lack of record is intentional I'll likely just close this. |
The addClassFromCPRecord method of the symbol validation manager should make sure that a ClassFromCPRecord is always added to the current compilation.