A reference cycle typically causes a memory leak, not a stack overflow. Here's why:
A reference cycle occurs when objects reference each other in a way that prevents garbage collection from reclaiming them.
In languages with automatic garbage collection (e.g., Python, Java), memory leaks happen when the garbage collector cannot free objects that are no longer needed.
Stack overflow occurs due to excessive recursion or deep call stacks.
Reference cycles do not cause stack overflow unless they are tied to recursion in a way that leads to infinite calls.
Yeah, come to think of it, a memory leak would be more relevant IF a reference cycle is involved.
I guess I overlooked that you were replying to what 돈부리 said, and only focused on the cartoon above, cuz when reading it, I figured recursion would be the simplest way to implement what's depicted in it.
ㅋㅋㄹㅃㅂ
저 아재는 누구
김츼
게이
도이칠란트청년
짱구 극장판에 나오는 생각읽는 빌런임
팬티벗기고싶다
짱구 맘읽는 아조씨
OヮO
세대차이를 느낀다
고양이뱃살개말랑해
오랫동안 당신같은 남자를 기다려왔다우
보라돌이얌
뻥이야
편붕이
나도 보자마자 뻥이야 아저씨네 했는데 ㅋㅋ
주원이
사실 오래전부터 당신같은 남자를 기다려 왔다우~
isnrnsli91
https://youtube.com/shorts/UICYoejnByU?feature=shared
Rayless
진짜 더빙 개잘했네
갓정연
참고로 저 빌런 아재랑 짱구아빠랑 같은 성우임
아카이브원
교착상태
오키나와vs노노들어가
생각을 읽는건 축복일까 저주일까
ton
저주에 가깝지 길거리돌아다니면 똥! 응가! 아 집가서 딸딸이쳐야지 이런게 막들려얼텐데
바로
생각을 읽는건 축복일까 저주일까 생각하고있어...
오키나와vs노노들어가
읽지마!!
1등유저
생각을 읽는건 축복일까 저주일까 생각하는걸 생각하고 있어
부등변다면체
딴사람은 몰라도 자기 부모님 머릿속이 상시 들리는채 성장하는건 개끔찍한 저주일것같음
타운트
저주지
필요할 때만 온오프 가능한게 아니면 알 필요 없는것까지 강제로 알아야 하는건 저주임
비발디
일단 저기서 여자애 둘은 어느정도 저주처럼 느끼고있음
개독교
온오프 되면 사기적인 능력일거같은데, 온오프가 되어도 인간이란게 간사해서 살아가는데 쉽지않을거같음
고기김치맥주
사람 말고 다른 동물들도 적용됨?
개 키울때 있으면 최고일듯
이제 개새끼가 지 아픈거 절대 못숨김 ㅋㅋㅋㅋ
대천왕중최약체
교미!교미!밥!밥!교미!교미!
욤키푸르
돈부리
순환참조ㄷㄷ
오로로로록
goto
AnanasPizza
Memory leak
performer
more like, a stack overflow
AnanasPizza
A reference cycle typically causes a memory leak, not a stack overflow. Here's why:
A reference cycle occurs when objects reference each other in a way that prevents garbage collection from reclaiming them.
In languages with automatic garbage collection (e.g., Python, Java), memory leaks happen when the garbage collector cannot free objects that are no longer needed.
Stack overflow occurs due to excessive recursion or deep call stacks.
Reference cycles do not cause stack overflow unless they are tied to recursion in a way that leads to infinite calls.
performer
Yeah, come to think of it, a memory leak would be more relevant IF a reference cycle is involved.
I guess I overlooked that you were replying to what 돈부리 said, and only focused on the cartoon above, cuz when reading it, I figured recursion would be the simplest way to implement what's depicted in it.
아냐포저
아닌데?
미꾸락지
으악 기울기폭주
질병계
Montmartre
쿄코
근데 저러면 죽거나 쓰러지지 않을까
엄청난 속도로 서로의 생각이 읽힐건데
비상식
데드락?
아니 그냥 무한 루프인가
미녀와야스
와규먹고싶다