Skip to content

Commit

Permalink
Merge pull request #4730 from fjeremic/migrate-randomgen
Browse files Browse the repository at this point in the history
Migrate randomgen architecture disabling from OpenJ9 to OMR
  • Loading branch information
pshipton authored Feb 24, 2019
2 parents 72bf491 + 2cfbbf2 commit 0896b9d
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions runtime/compiler/z/codegen/J9CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,40 +62,6 @@ J9::Z::CodeGenerator::CodeGenerator() :
TR::Compilation *comp = cg->comp();
TR_J9VMBase *fej9 = (TR_J9VMBase *)(comp->fe());

// Do random Disable<Platform> when -Xjit randomGen
if (comp->getOption(TR_Randomize))
{
switch(randomizer.randomInt(TR::Compiler->target.cpu.id() - TR_s370gp7))
{
case 1:
{
_processorInfo.disableArch(TR_S390ProcessorInfo::TR_z196);
traceMsg(comp, "disablez196");
break;
}

case 2:
{
_processorInfo.disableArch(TR_S390ProcessorInfo::TR_zEC12);
traceMsg(comp, "disablezEC12");
break;
}

case 3:
{
_processorInfo.disableArch(TR_S390ProcessorInfo::TR_z13);
traceMsg(comp, "disablez13");
break;
}
case 4:
{
_processorInfo.disableArch(TR_S390ProcessorInfo::TR_zNext);
traceMsg(comp, "RandomGen: Setting disabling zNext processor architecture.");
break;
}
}
}

cg->setAheadOfTimeCompile(new (cg->trHeapMemory()) TR::AheadOfTimeCompile(cg));

// Java specific runtime helpers
Expand Down

0 comments on commit 0896b9d

Please sign in to comment.