Skip to content

Commit

Permalink
Fix a zombie comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrail committed Oct 28, 2024
1 parent ea7407d commit c3f06c3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,16 @@ public class Bootstrapper {
static {
// Set up the linkers
DynamicLinkerFactory factory = new DynamicLinkerFactory();
// Check the list of type-based linkers first, and fall back to the
// default linker, which will always work by falling back to
// generic ScriptRuntime methods.
// The const-aware-linker will only bind a few operations, and everything
// else will fall back to the default linker, which will always bind.
factory.setPrioritizedLinkers(new ConstAwareLinker(), new DefaultLinker());
linker = factory.createLinker();
}

/** This is the method called by every call site in the bytecode to map it to a function. */
@SuppressWarnings("unused")
public static CallSite bootstrap(MethodHandles.Lookup lookup, String name, MethodType mType)
throws NoSuchMethodException, IllegalAccessException {
throws NoSuchMethodException {
Operation op = parseOperation(name);
// ChainedCallSite lets a call site have a few options for complex situations
return linker.link(new ChainedCallSite(new CallSiteDescriptor(lookup, op, mType)));
Expand Down

0 comments on commit c3f06c3

Please sign in to comment.