|
|
|
Created:
15 years, 10 months ago by Jeffrey Yasskin Modified:
15 years, 10 months ago Reviewers:
Reid Kleckner Base URL:
https://llvm.org/svn/llvm-project/llvm/trunk/ Visibility:
Public. |
Patch Set 1 #
Total comments: 1
Total messages: 3
|
Jeffrey Yasskin
Am I going to break anything by doing this? I believe it's the last memory ...
|
15 years, 10 months ago (2010年03月15日 17:03:31 UTC) #1 | ||||||||||||||
Am I going to break anything by doing this? I believe it's the last memory leak in the LLVM unittests.
Nope, looks good to me. GDB doesn't hold pointers to entries in the inferior. http://codereview.appspot.com/569041/diff/1/2 File lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp (right): http://codereview.appspot.com/569041/diff/1/2#newcode194 lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp:194: JITCodeEntry = NULL; If you want to erase dangling pointers, there's also the relevant_entry field of the descriptor.
On Mon, Mar 15, 2010 at 10:23 PM, <reid.kleckner@gmail.com> wrote: > Nope, looks good to me. GDB doesn't hold pointers to entries in the > inferior. Cool, thanks. > http://codereview.appspot.com/569041/diff/1/2 > File lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp (right): > > http://codereview.appspot.com/569041/diff/1/2#newcode194 > lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp:194: JITCodeEntry = NULL; > If you want to erase dangling pointers, there's also the relevant_entry > field of the descriptor. That one's never read from llvm code, so I don't care as much.