스레드를 return으로 종료하는 방식의 정석적인 종료 절차를 생각을 안해놔서 종료할 때 메모리 릭이 있더라고.
존나게 하기 싫었는데, 꾹 참고 하나하나 다잡아내서 제대로 함.
댓글 5
valgrind 는 메모리 누수를 어떻게 측정함? 켜져있는 동안 주기적으로 스캔하는건가?? - dc App
익명(39.7)2022-03-03 12:50
답글
엇... 이거 보기 전까진 malloc이나 new를 대체하는 건줄 알았는데, 이런 내용이 있네.
"Another approach is how valgrind works which implements an entire virtual machine to keep track of addresses and memory references and associated bookkeeping. The valgrind approach is much more expensive, but also much more effective as it can also tell you about other types of memory errors like out of bounds reads or writes."
valgrind 는 메모리 누수를 어떻게 측정함? 켜져있는 동안 주기적으로 스캔하는건가?? - dc App
엇... 이거 보기 전까진 malloc이나 new를 대체하는 건줄 알았는데, 이런 내용이 있네. "Another approach is how valgrind works which implements an entire virtual machine to keep track of addresses and memory references and associated bookkeeping. The valgrind approach is much more expensive, but also much more effective as it can also tell you about other types of memory errors like out of bounds reads or writes."
와 아예 자체 VM 을 구현했구나 대단한데 - dc App
존나 섹시하다
발그린드는 발로 만든 코드를 그라인딩 해버린다는 의미가 아닐까