Tabnine Logo
ConcurrentLightHashSet
Code IndexAdd Tabnine to your IDE (free)

How to use
ConcurrentLightHashSet
in
com.oracle.graal.pointsto.util

Best Java code snippets using com.oracle.graal.pointsto.util.ConcurrentLightHashSet (Showing top 20 results out of 315)

origin: com.oracle.substratevm/svm

public void recordMethodWithStackValues(AnalysisMethod analysisMethod) {
  methodsWithStackValues.addElement(analysisMethod);
}
origin: com.oracle.substratevm/pointsto

public Collection<TypeFlow<?>> getObservers() {
  return observers.getElements();
}
origin: com.oracle.substratevm/pointsto

protected AbstractVirtualInvokeTypeFlow(BigBang bb, MethodFlowsGraph methodFlows, AbstractVirtualInvokeTypeFlow original) {
  super(bb, methodFlows, original);
  callees = new ConcurrentLightHashSet<>();
}
origin: com.oracle.substratevm/pointsto

@Override
public Collection<MethodFlowsGraph> getCalleesFlows(BigBang bb) {
  // collect the flow graphs, one for each analysis method, since it is context
  // insensitive
  List<MethodFlowsGraph> methodFlowsGraphs = new ArrayList<>(callees.size());
  for (AnalysisMethod method : callees.getElements()) {
    methodFlowsGraphs.add(method.getTypeFlow().getFlows(bb.contextPolicy().emptyContext()));
  }
  return methodFlowsGraphs;
}
origin: com.oracle.substratevm/pointsto

public boolean removeObservee(TypeFlow<?> observee) {
  return observees.removeElement(observee);
}
origin: com.oracle.substratevm/pointsto

public void clearUses() {
  uses.clear();
}
origin: com.oracle.substratevm/pointsto

public boolean removeInput(TypeFlow<?> input) {
  return inputs.removeElement(input);
}
origin: com.oracle.substratevm/pointsto

public void addObservee(TypeFlow<?> observee) {
  observees.addElement(observee);
}
origin: com.oracle.substratevm/pointsto

public Collection<TypeFlow<?>> getInputs() {
  return inputs.getElements();
}
origin: com.oracle.substratevm/pointsto

public boolean removeObserver(TypeFlow<?> observer) {
  observer.removeObservee(this);
  return observers.removeElement(observer);
}
origin: com.oracle.substratevm/pointsto

private TypeFlow(T source, AnalysisType declaredType, TypeState typeState, int slot, boolean isClone, MethodFlowsGraph graphRef) {
  this.id = nextId.incrementAndGet();
  this.source = source;
  this.declaredType = declaredType;
  this.slot = slot;
  this.isClone = isClone;
  this.graphRef = graphRef;
  this.context = graphRef != null ? graphRef.context() : null;
  this.state = typeState;
  this.uses = new ConcurrentLightHashSet<>();
  this.inputs = new ConcurrentLightHashSet<>();
  this.observers = new ConcurrentLightHashSet<>();
  this.observees = new ConcurrentLightHashSet<>();
  this.usedAsAParameter = false;
  this.usedAsAReceiver = false;
}
origin: com.oracle.substratevm/pointsto

public void addInput(TypeFlow<?> input) {
  inputs.addElement(input);
}
origin: com.oracle.substratevm/pointsto

@Override
public final Collection<AnalysisMethod> getCallees() {
  return callees.getElements();
}
origin: com.oracle.substratevm/pointsto

public boolean removeUse(TypeFlow<?> use) {
  use.removeInput(this);
  return uses.removeElement(use);
}
origin: com.oracle.substratevm/pointsto

protected AbstractVirtualInvokeTypeFlow(Invoke invoke, MethodCallTargetNode target,
        TypeFlow<?>[] actualParameters, ActualReturnTypeFlow actualReturn, BytecodeLocation location) {
  super(invoke, target, actualParameters, actualReturn, location);
  assert target.invokeKind() == InvokeKind.Virtual || target.invokeKind() == InvokeKind.Interface;
  callees = new ConcurrentLightHashSet<>();
}
origin: com.oracle.substratevm/pointsto

protected boolean addCallee(AnalysisMethod callee) {
  boolean add = callees.addElement(callee);
  if (this.isClone()) {
    // if this is a clone, register the callee with the original invoke
    ((AbstractVirtualInvokeTypeFlow) originalInvoke).addCallee(callee);
  }
  return add;
}
origin: com.oracle.substratevm/pointsto

public Collection<TypeFlow<?>> getUses() {
  return uses.getElements();
}
origin: com.oracle.substratevm/pointsto

protected boolean doAddUse(BigBang bb, TypeFlow<?> use, boolean registerInput) {
  if (use.equals(this)) {
    return false;
  }
  if (bb.trackTypeFlowInputs() || registerInput) {
    use.addInput(this);
  }
  return uses.addElement(use);
}
origin: com.oracle.substratevm/pointsto

public Collection<TypeFlow<?>> getObservees() {
  return observees.getElements();
}
origin: com.oracle.substratevm/pointsto

protected boolean doAddObserver(BigBang bb, TypeFlow<?> observer, boolean registerObservees) {
  if (observer.equals(this)) {
    return false;
  }
  if (bb.trackTypeFlowInputs() || registerObservees) {
    observer.addObservee(this);
  }
  return observers.addElement(observer);
}
com.oracle.graal.pointsto.utilConcurrentLightHashSet

Javadoc

Implements a hash set that is concurrent, backed by a concurrent hash map, and memory efficient. The memory efficiency comes from the fact that the map is initialized only when the set contains more than one element. When it contains a single element it is simply stored in a field. When the set is empty the field is null. In situations where is likely that the set will contain no or only one element there is no memory overhead incurred by allocating the map.

Most used methods

  • addElement
  • getElements
  • <init>
  • clear
  • removeElement
  • size

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Menu (java.awt)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now