File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
sycl/plugins/unified_runtime/ur Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -272,9 +272,6 @@ class USMAllocContext::USMAllocImpl {
272
272
// Configuration for this instance
273
273
USMAllocatorParameters params;
274
274
275
- // Protects the capacity checking of the pool.
276
- SpinLock PoolLock;
277
-
278
275
public:
279
276
USMAllocImpl (std::unique_ptr<SystemMemory> SystemMemHandle,
280
277
USMAllocatorParameters params)
@@ -309,8 +306,6 @@ class USMAllocContext::USMAllocImpl {
309
306
void printStats (bool &TitlePrinted, size_t &HighBucketSize,
310
307
size_t &HighPeakSlabsInUse, const std::string &Label);
311
308
312
- SpinLock &getLock () { return PoolLock; }
313
-
314
309
private:
315
310
Bucket &findBucket (size_t Size);
316
311
};
@@ -582,7 +577,6 @@ void Bucket::onFreeChunk(Slab &Slab, bool &ToPool) {
582
577
}
583
578
584
579
bool Bucket::CanPool (bool &ToPool) {
585
- std::lock_guard<SpinLock> Lock{OwnAllocCtx.getLock ()};
586
580
size_t NewFreeSlabsInBucket;
587
581
// Check if this bucket is used in chunked form or as full slabs.
588
582
bool chunkedBucket = getSize () <= ChunkCutOff ();
You can’t perform that action at this time.
0 commit comments