Skip to content

Commit

Permalink
use checkGeneration in JIT for modulemethodguard check
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Jan 25, 2017
1 parent 82b3cd8 commit ece8446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ public void ModuleVersionGuardInstr(ModuleVersionGuardInstr moduleversionguardin
visit(moduleversionguardinstr.getCandidateObject());
jvmAdapter().pushInt(moduleversionguardinstr.getExpectedVersion());
jvmAdapter().pushInt(moduleversionguardinstr.getIPC());
jvmMethod().invokeHelper("isGenerationEqual", void.class, IRubyObject.class, int.class, int.class);
jvmMethod().invokeHelper("checkGeneration", void.class, IRubyObject.class, int.class, int.class);
}

@Override
Expand Down

0 comments on commit ece8446

Please sign in to comment.