Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ public Class<?> loadThemBytes(String dottyName, byte[] b) {

public static CallSite retrieveCallSite(MethodHandles.Lookup __, String name, MethodType ___) {
LOGGER.debug("retrieveCallSite({})", name);
return requireNonNull(CALL_SITES_BY_NAME.remove(name));
// We'd like to call remove here, but under some circumstances, bootstrap methods
// can be called multiple times, so we need to leave the CalLSite in the map.
return requireNonNull(CALL_SITES_BY_NAME.get(name));
}

private static final Method RETRIEVE_CALL_SITE_METHOD;
Expand Down