Skip to content

Make unreachableOrphan a member method - #6730

Merged
0xdaryl merged 1 commit into
eclipse-omr:masterfrom
jamesgua:OrphanType
Sep 29, 2022
Merged

Make unreachableOrphan a member method#6730
0xdaryl merged 1 commit into
eclipse-omr:masterfrom
jamesgua:OrphanType

Conversation

@jamesgua

Copy link
Copy Markdown
Contributor

to be accessible by extended class

Signed-off-by: Tao Guan james_mango@yahoo.com

@jamesgua

Copy link
Copy Markdown
Contributor Author

In our project we need to extend method removeEdge, however method unreachableOrphan is local so I made it a protected member method. And I also found enum Start/EndBlock is declared only but not found anywhere else even in open j9 so I removed it.

Comment thread compiler/infra/OMRCfg.hpp Outdated
int32_t _initialBlockFrequency;
static const int32_t MAX_PROF_EDGE_FREQ=0x3FFE;
enum OrphanType
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix brace indenting.

Comment thread compiler/infra/OMRCfg.hpp Outdated

TR::Region& getInternalMemoryRegion();

//FIXME: These public members should eventually be wrtapped in an interface.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix spelling of "wrapped" while you're here.

Comment thread compiler/infra/OMRCfg.cpp Outdated
// test if 'to' is an unreachable orphan
//
static OrphanType unreachableOrphan(TR::CFG *cfg, TR::CFGNode *from, TR::CFGNode *to)
TR::CFG::OrphanType

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This enum isn't extended and lives in the OMR namespace. Shouldn't it be OMR::CFG::OrphanType ?

@0xdaryl 0xdaryl self-assigned this Sep 28, 2022
  to be accessible by extended class

Signed-off-by: Tao Guan <james_mango@yahoo.com>
@0xdaryl

0xdaryl commented Sep 29, 2022

Copy link
Copy Markdown
Contributor

Jenkins build all

@0xdaryl
0xdaryl merged commit 0e876e1 into eclipse-omr:master Sep 29, 2022
@jamesgua
jamesgua deleted the OrphanType branch October 28, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants