Skip to content

Commit

Permalink
Add j9protos.h to StringTable.hpp
Browse files Browse the repository at this point in the history
This patch fixes a include-order dependency in StringTable.cpp.
StringTable.hpp relies on j9protos.h which it transitively has
access to through the include order in StringTable.cpp. This patch
includes j9protos.h explicitly in StringTable.hpp and alters
StringTable.cpp includes to conform to the OMR coding standards.

Signed-off-by: Nathan Henderson <[email protected]>
  • Loading branch information
ThanHenderson committed Apr 16, 2024
1 parent c36d904 commit 33fdad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtime/gc_base/StringTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0
*******************************************************************************/

#include "StringTable.hpp"

#include "hashtable_api.h"
#include "j2sever.h"
#include "j9consts.h"
#include "j9protos.h"
#include "objhelp.h"
#include "ModronAssertions.h"

#include "EnvironmentBase.hpp"
#include "GCExtensions.hpp"
#include "StringTable.hpp"
#include "VMHelpers.hpp"

/* the following is all zeros except the least significant bit */
Expand Down
1 change: 1 addition & 0 deletions runtime/gc_base/StringTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include "BaseVirtual.hpp"

#include "j9protos.h"
#include "ModronAssertions.h"

class MM_EnvironmentBase;
Expand Down

0 comments on commit 33fdad4

Please sign in to comment.