ConcurrentWriterCpgPass

abstract
class ConcurrentWriterCpgPass[T <: AnyRef](cpg: Cpg, outName: String, keyPool: Option[KeyPool]) extends CpgPassBase
Companion
object
class Object
trait Matchable
class Any

Type members

Types

type DiffGraphBuilder = DiffGraphBuilder

Value members

Abstract methods

def runOnPart(builder: DiffGraphBuilder, part: T): Unit

WARNING: runOnPart is executed in parallel to committing of graph modifications. The upshot is that it is unsafe to read ANY data from cpg, on pain of bad race conditions

WARNING: runOnPart is executed in parallel to committing of graph modifications. The upshot is that it is unsafe to read ANY data from cpg, on pain of bad race conditions

Only use ConcurrentWriterCpgPass if you are very sure that you avoid races.

E.g. adding a CFG edge to node X races with reading an AST edge of node X.

Concrete methods

override
def createAndApply(): Unit
Definition Classes
override
def createApplySerializeAndStore(serializedCpg: SerializedCpg, inverse: Boolean, prefix: String): Unit
Definition Classes
def finish(): Unit
def generateParts(): Array[_ <: AnyRef]
def init(): Unit

Inherited methods

def name: String

Name of the pass. By default it is inferred from the name of the class, override if needed.

Name of the pass. By default it is inferred from the name of the class, override if needed.

Inherited from
CpgPassBase

Concrete fields

@volatile
var nDiffT: Int