Skip to content

Commit

Permalink
Reset errorDetailCode before bytecode verification
Browse files Browse the repository at this point in the history
j9rtv_verifyArguments expects J9BytecodeVerificationData:errorDetailCode
 to be reset for each class. The error may be processed incorrectly in
j9bcv_createVerifyErrorString if the errorDetailCode is kept
from a previously verified class.

Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Oct 29, 2024
1 parent 17ee5e7 commit a582405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/bcverify/bcverify.c
Original file line number Diff line number Diff line change
Expand Up @@ -2427,6 +2427,7 @@ j9bcv_verifyBytecodes (J9PortLibrary * portLib, J9Class * clazz, J9ROMClass * ro

verifyData->romClass = romClass;
verifyData->errorPC = 0;
verifyData->errorDetailCode = 0;

verifyData->romClassInSharedClasses = j9shr_Query_IsAddressInCache(verifyData->javaVM, romClass, romClass->romSize);

Expand Down

0 comments on commit a582405

Please sign in to comment.