From ba5f46bee31edae2c6e31d8e54319504079c6998 Mon Sep 17 00:00:00 2001 From: prajwal Date: Mon, 24 Jul 2023 20:08:37 +0530 Subject: [PATCH] Rename TR_InlinedSiteHastTableEntry to TR_InlinedSiteHashTableEntry The identifier "TR_InlinedSiteHashTableEntry" was mistakenly misspelled as "TR_InlinedSiteHastTableEntry" in various parts of codebase. This typographical error caused confusion and inconsistencies throughout the project. This commit addresses the issue by correcting the typo and renaming the variable to "TR_InlinedSiteHashTableEntry" consistently throughout the project. --- runtime/compiler/codegen/J9CodeGenerator.cpp | 10 +++++----- runtime/compiler/runtime/J9Runtime.hpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/runtime/compiler/codegen/J9CodeGenerator.cpp b/runtime/compiler/codegen/J9CodeGenerator.cpp index 1c6b1b05ed5..24c1ce42941 100644 --- a/runtime/compiler/codegen/J9CodeGenerator.cpp +++ b/runtime/compiler/codegen/J9CodeGenerator.cpp @@ -2735,7 +2735,7 @@ static TR_ExternalRelocationTargetKind getReloKindFromGuardSite(TR::CodeGenerato return type; } -static void processAOTGuardSites(TR::CodeGenerator *cg, uint32_t inlinedCallSize, TR_InlinedSiteHastTableEntry *orderedInlinedSiteListTable) +static void processAOTGuardSites(TR::CodeGenerator *cg, uint32_t inlinedCallSize, TR_InlinedSiteHashTableEntry *orderedInlinedSiteListTable) { TR::list *aotGuardSites = cg->comp()->getAOTGuardPatchSites(); for(auto it = aotGuardSites->begin(); it != aotGuardSites->end(); ++it) @@ -2845,7 +2845,7 @@ static void addInlinedSiteRelocation(TR::CodeGenerator *cg, NULL); } -static void addInliningTableRelocations(TR::CodeGenerator *cg, uint32_t inlinedCallSize, TR_InlinedSiteHastTableEntry *orderedInlinedSiteListTable) +static void addInliningTableRelocations(TR::CodeGenerator *cg, uint32_t inlinedCallSize, TR_InlinedSiteHashTableEntry *orderedInlinedSiteListTable) { // If have inlined calls, now add the relocation records in descending order // of inlined site index (at relocation time, the order is reverse) @@ -2891,11 +2891,11 @@ J9::CodeGenerator::processRelocations() uint32_t inlinedCallSize = self()->comp()->getNumInlinedCallSites(); // Create temporary hashtable for ordering AOT guard relocations - TR_InlinedSiteHastTableEntry *orderedInlinedSiteListTable = NULL; + TR_InlinedSiteHashTableEntry *orderedInlinedSiteListTable = NULL; if (inlinedCallSize > 0) { - orderedInlinedSiteListTable= (TR_InlinedSiteHastTableEntry*)self()->comp()->trMemory()->allocateMemory(sizeof(TR_InlinedSiteHastTableEntry) * inlinedCallSize, heapAlloc); - memset(orderedInlinedSiteListTable, 0, sizeof(TR_InlinedSiteHastTableEntry)*inlinedCallSize); + orderedInlinedSiteListTable= (TR_InlinedSiteHashTableEntry*)self()->comp()->trMemory()->allocateMemory(sizeof(TR_InlinedSiteHashTableEntry) * inlinedCallSize, heapAlloc); + memset(orderedInlinedSiteListTable, 0, sizeof(TR_InlinedSiteHashTableEntry)*inlinedCallSize); } // Traverse list of AOT-specific guards and create relocation records diff --git a/runtime/compiler/runtime/J9Runtime.hpp b/runtime/compiler/runtime/J9Runtime.hpp index 98224c3dfc7..70f84030a21 100644 --- a/runtime/compiler/runtime/J9Runtime.hpp +++ b/runtime/compiler/runtime/J9Runtime.hpp @@ -115,11 +115,11 @@ typedef struct TR_InlinedSiteLinkedListEntry } TR_InlinedSiteLinkedListEntry; -typedef struct TR_InlinedSiteHastTableEntry +typedef struct TR_InlinedSiteHashTableEntry { TR_InlinedSiteLinkedListEntry *first; TR_InlinedSiteLinkedListEntry *last; - } TR_InlinedSiteHastTableEntry; + } TR_InlinedSiteHashTableEntry; typedef enum