Skip to content

Missing support for static memory snapshot in data structures API #816

@dmitrii-artuhov

Description

@dmitrii-artuhov

Static memory snapshot is now restored only between invocations of managed strategy and after verification of the execution scenario, which is sufficient for GPMC mode. But it is not enough for data structures testing. We are missing snapshot restoring during the linearizability checking (inside verification, basically): when we are trying to find the sequence of linearizability points of the data structure operations, we need to restore static snapshot in between those tries. It is required because most of the time, sequential specification is the same class as the data structure under test, and it modifies the same static variables.

while (!canLinearize(...)):
   val linSeq = getNewLinSeq()
   checkLinearizability(linSeq)
   restoreStaticMemory(...) // it also seems that tying static snapshot solely to strategy
                            // does not seem right in case when we want to support it for data structures API

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions