Skip to content

Commit

Permalink
Showing 4 changed files with 0 additions and 47 deletions.
2 changes: 0 additions & 2 deletions truffle/src/main/java/org/jruby/truffle/RubyContext.java
Original file line number Diff line number Diff line change
@@ -172,8 +172,6 @@ public RubyContext(Ruby jrubyRuntime, TruffleLanguage.Env env) {
attachmentsManager = new AttachmentsManager(this, instrumenter);
traceManager = new TraceManager(this, instrumenter);
coverageManager = new CoverageManager(this, instrumenter);

coreLibrary.initializePostBoot();
}

public Object send(Object object, String methodName, DynamicObject block, Object... arguments) {
21 changes: 0 additions & 21 deletions truffle/src/main/java/org/jruby/truffle/core/CoreLibrary.java
Original file line number Diff line number Diff line change
@@ -911,27 +911,6 @@ public void initializeAfterBasicMethodsAdded() {
assert Layouts.CLASS.isClass(eagainWaitWritable);
}

public void initializePostBoot() {
// Load code that can't be run until everything else is boostrapped, such as pre-loaded Ruby stdlib.

try {
Main.printTruffleTimeMetric("before-post-boot");
try {
final RubyRootNode rootNode = context.getCodeLoader().parse(context.getSourceCache().getSource(getCoreLoadPath() + "/core/post-boot.rb"), UTF8Encoding.INSTANCE, ParserContext.TOP_LEVEL, null, true, node);
final CodeLoader.DeferredCall deferredCall = context.getCodeLoader().prepareExecute(ParserContext.TOP_LEVEL, DeclarationContext.TOP_LEVEL, rootNode, null, context.getCoreLibrary().getMainObject());
deferredCall.callWithoutCallNode();
} catch (IOException e) {
throw new RuntimeException(e);
}

Main.printTruffleTimeMetric("after-post-boot");
} catch (RaiseException e) {
final DynamicObject rubyException = e.getException();
BacktraceFormatter.createDefaultFormatter(getContext()).printBacktrace(context, rubyException, Layouts.EXCEPTION.getBacktrace(rubyException));
throw new TruffleFatalException("couldn't load the post-boot code", e);
}
}

private void initializeRubiniusFFI() {
Layouts.MODULE.getFields(rubiniusFFIModule).setConstant(context, node, "TYPE_CHAR", RubiniusTypes.TYPE_CHAR);
Layouts.MODULE.getFields(rubiniusFFIModule).setConstant(context, node, "TYPE_UCHAR", RubiniusTypes.TYPE_UCHAR);
10 changes: 0 additions & 10 deletions truffle/src/main/ruby/core/post-boot.rb

This file was deleted.

14 changes: 0 additions & 14 deletions truffle/src/main/ruby/core/post-boot/shims.rb

This file was deleted.

0 comments on commit c2aed02

Please sign in to comment.