| 51 | } |
| 52 | |
| 53 | // JSValueRefHolder deallocation triggers a tsan warning, as it is possible that |
| 54 | // the dispose() virtual method gets called while the holder is being destroyed. |
| 55 | // This is not a problem in practice as we acquire the lock during the removeDisposable() |
| 56 | // call, so the destructor will end up "pausing" while doDispose() is called |
| 57 | __attribute__((no_sanitize("thread"))) JSValueRefHolder::~JSValueRefHolder() { |
| 58 | _context->removeDisposable(this); |
no test coverage detected