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. */
| 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. */ |
| 197 | void 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. |
no outgoing calls
no test coverage detected