Skip to content

[GR-64675] Remove unused concurrent hashmap PointsToAnalysisMethod.invokedBy #11130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 @@ -53,7 +53,6 @@ public final class PointsToAnalysisMethod extends AnalysisMethod {
/** The parsing context in which given method was parsed, preserved after analysis. */
private Object parsingReason;

private Set<InvokeTypeFlow> invokedBy;
private Set<InvokeTypeFlow> implementationInvokedBy;
/**
* Unique, per method, per multi-method key, context insensitive invoke. The context insensitive
Expand Down Expand Up @@ -86,9 +85,6 @@ protected AnalysisMethod createMultiMethod(AnalysisMethod analysisMethod, MultiM

@Override
public void startTrackInvocations() {
if (invokedBy == null) {
invokedBy = ConcurrentHashMap.newKeySet();
}
if (implementationInvokedBy == null) {
implementationInvokedBy = ConcurrentHashMap.newKeySet();
}
Expand All @@ -101,9 +97,6 @@ public MethodTypeFlow getTypeFlow() {
@Override
public boolean registerAsInvoked(Object reason) {
assert reason instanceof InvokeTypeFlow || reason instanceof String : reason;
if (invokedBy != null && reason instanceof InvokeTypeFlow) {
invokedBy.add((InvokeTypeFlow) reason);
}
return super.registerAsInvoked(unwrapInvokeReason(reason));
}

Expand Down Expand Up @@ -257,7 +250,6 @@ public void cleanupAfterAnalysis() {
contextInsensitiveVirtualInvoke = null;
contextInsensitiveSpecialInvoke = null;
typeFlow = null;
invokedBy = null;
implementationInvokedBy = null;
}

Expand Down