MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / SIValue_MakeVolatile

Function SIValue_MakeVolatile

src/value.c:197–199  ·  view source on GitHub ↗

Update an SIValue marked as owning its internal allocations so that it instead is sharing them, * with no responsibility for freeing or guarantee regarding scope. * This is used in cases like performing shallow copies of scalars in Record entries. */

Source from the content-addressed store, hash-verified

195 * with no responsibility for freeing or guarantee regarding scope.
196 * This is used in cases like performing shallow copies of scalars in Record entries. */
197void SIValue_MakeVolatile(SIValue *v) {
198 if(v->allocation == M_SELF) v->allocation = M_VOLATILE;
199}
200
201/* Ensure that any allocation held by the given SIValue is guaranteed to not go out
202 * of scope during the lifetime of this query by copying references to volatile memory.

Callers 4

AR_CASEWHENFunction · 0.85
AR_COALESCEFunction · 0.85
_RecordPropagateEntryFunction · 0.85
Record_CloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected