@@ -315,7 +315,7 @@ class ObjectCache : public ObjectCacheBase<AllocatorT> {
315315 std::shared_ptr<T> peekToWrite (folly::StringPiece key);
316316
317317 // Insert the object into the cache with given key. If the key exists in the
318- // cache, it will be replaced with new obejct .
318+ // cache, it will be replaced with new object .
319319 //
320320 // @param key the key to the object.
321321 // @param object unique pointer for the object to be inserted.
@@ -394,7 +394,7 @@ class ObjectCache : public ObjectCacheBase<AllocatorT> {
394394 return this ->l1Cache_ ->getAccessContainerNumKeys ();
395395 }
396396
397- // Get direct access to the interal CacheAllocator.
397+ // Get direct access to the internal CacheAllocator.
398398 // This is only used in tests.
399399 AllocatorT& getL1Cache () { return *this ->l1Cache_ ; }
400400
@@ -637,7 +637,7 @@ class ObjectCache : public ObjectCacheBase<AllocatorT> {
637637
638638 void initWorkers ();
639639
640- // Allocate an item handle from the interal cache allocator. This item's
640+ // Allocate an item handle from the internal cache allocator. This item's
641641 // storage is used to cache pointer to objects in object-cache.
642642 typename AllocatorT::WriteHandle allocateFromL1 (folly::StringPiece key,
643643 uint32_t ttl,
@@ -865,8 +865,8 @@ void ObjectCache<AllocatorT>::init() {
865865 XDCHECK_GE (slabsPerShard * allocsPerSlab, allocsPerShard);
866866 XDCHECK_LT (l1PlaceHoldersPerShard, allocsPerSlab);
867867
868- // allocsPerShard is celing of the division by numShards, meaning
869- // additional number (i.e., extraLimit) of placesholders need to be created
868+ // allocsPerShard is ceiling of the division by numShards, meaning
869+ // additional number (i.e., extraLimit) of placeholders need to be created
870870 const size_t extraLimit =
871871 allocsPerShard * config_.l1NumShards - config_.l1EntriesLimit ;
872872 XDCHECK_GE (allocsPerShard * config_.l1NumShards , config_.l1EntriesLimit );
@@ -1023,7 +1023,7 @@ ObjectCache<AllocatorT>::insertOrReplace(folly::StringPiece key,
10231023 if (replaced) {
10241024 replaces_.inc ();
10251025 auto itemPtr = getAlignedItemPtr (replaced->getMemory ());
1026- // Just release the handle. Cache destorys object when all handles
1026+ // Just release the handle. Cache destroys object when all handles
10271027 // released.
10281028 auto deleter = [h = std::move (replaced)](T*) {};
10291029 replacedPtr = std::shared_ptr<T>(reinterpret_cast <T*>(itemPtr->objectPtr ),
0 commit comments