Skip to content

Commit

Permalink
(0.48) Declare variables first in romToRam entry removal
Browse files Browse the repository at this point in the history
Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Sep 19, 2024
1 parent 47042a0 commit f2bc9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/util/hshelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2643,9 +2643,9 @@ recreateRAMClasses(J9VMThread * currentThread, J9HashTable * classHashTable, J9H
if (!fastHCR) {
vmFuncs->hashClassTableDelete(classLoader, J9UTF8_DATA(className), J9UTF8_LENGTH(className));
if ((NULL != vm->sharedClassConfig) && (NULL != vm->sharedClassConfig->romToRamHashTable)) {
omrthread_rwmutex_enter_write(vm->sharedClassConfig->romToRamHashTableMutex);
RomToRamEntry entry;
entry.ramClass = originalRAMClass;
omrthread_rwmutex_enter_write(vm->sharedClassConfig->romToRamHashTableMutex);
hashTableRemove(vm->sharedClassConfig->romToRamHashTable, &entry);
omrthread_rwmutex_exit_write(vm->sharedClassConfig->romToRamHashTableMutex);
}
Expand Down

0 comments on commit f2bc9ac

Please sign in to comment.