MCPcopy Create free account
hub / github.com/Snapchat/Valdi / ~JSValueRefHolder

Method ~JSValueRefHolder

valdi/src/valdi/runtime/JavaScript/JSValueRefHolder.cpp:42–46  ·  view source on GitHub ↗

JSValueRefHolder deallocation triggers a tsan warning, as it is possible that the dispose() virtual method gets called while the holder is being destroyed. This is not a problem in practice as we acquire the lock during the removeDisposable() call, so the destructor will end up "pausing" while doDispose() is called

Source from the content-addressed store, hash-verified

40 }
41 attributionExceptionTracker.clearError();
42 }
43
44 if (captureStackTrace) {
45 if (exceptionTracker.getStackTraceProvider() == nullptr && jsContext.getListener() != nullptr) {
46 exceptionTracker.setStackTraceProvider(jsContext.getListener()->captureCurrentStackTrace());
47 }
48
49 _stackTraceProvider = exceptionTracker.getStackTraceProvider();

Callers

nothing calls this directly

Calls 2

removeDisposableMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected