[SERVER-10455] clean up leaks in spin_lock_test.cpp Created: 07/Aug/13  Updated: 16/Oct/15  Resolved: 16/Oct/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matt Dannenberg Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Comments   
Comment by Kamran K. [ 16/Oct/15 ]

I believe the leaks have gone away given our continued use of LeakSanitizer.

Valgrind reports no leaks, too:

$ valgrind build/7a67446c/mongo/util/concurrency/spin_lock_test
==4960== Memcheck, a memory error detector
==4960== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==4960== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==4960== Command: build/7a67446c/mongo/util/concurrency/spin_lock_test
==4960== 
2015-10-16T18:43:49.817-0400 I -        [main] going to run suite: Concurrency
2015-10-16T18:43:49.869-0400 I -        [main] 	 going to run test: ConcurrentIncs
2015-10-16T18:43:51.174-0400 I -        [main] spinlock ConcurrentIncs time: 1295
2015-10-16T18:43:51.185-0400 I -        [main] 	 DONE running tests
2015-10-16T18:43:51.194-0400 I -        [main] **************************************************
2015-10-16T18:43:51.204-0400 I -        [main] Concurrency                    | tests:    1 | fails:    0 | assert calls:          0 | time secs:  1.317
2015-10-16T18:43:51.207-0400 I -        [main] TOTALS                         | tests:    1 | fails:    0 | assert calls:          0 | time secs:  1.317
2015-10-16T18:43:51.208-0400 I -        [main] SUCCESS - All tests in all suites passed
==4960== 
==4960== HEAP SUMMARY:
==4960==     in use at exit: 1,051,600 bytes in 24 blocks
==4960==   total heap usage: 1,744 allocs, 1,720 frees, 1,288,490 bytes allocated
==4960== 
==4960== LEAK SUMMARY:
==4960==    definitely lost: 0 bytes in 0 blocks
==4960==    indirectly lost: 0 bytes in 0 blocks

Generated at Thu Feb 08 03:23:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.