Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a zombie comment
Browse files Browse the repository at this point in the history
gbrail committed Oct 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c588025 commit 0c726b1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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)));

0 comments on commit 0c726b1

Please sign in to comment.