| 68 | } |
| 69 | |
| 70 | void BStringData::decRefCount() { |
| 71 | if (refCount.fetch_sub(1, std::memory_order_acq_rel) == 1) { |
| 72 | if (level) { |
| 73 | releaseString(level, str); |
| 74 | } |
| 75 | delete this; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | static BStringData* allocNewData() { |
| 80 | return new BStringData(); |
no test coverage detected