On Tue, 27 Oct 2026 03:07:39 GMT, Koichi Sakata <[email protected]> wrote:

> As a proposal of the test fix, we can make TestDebugInfoDecode fail when the 
> output string contains "Exception", or just "java.lang.NullPointerException", 
> with OutputAnalyzer.shouldNotContain().

Yes, I think that would be a good idea. The reason CodeHeap.iterate() catches 
RuntimeException is because SA may have attached to the JVM when the codeheap 
is inconsistent, so exceptions can happen. However, when using LingeredApp, it 
is generally safe to do things like walk the heap since it is normally not 
mutating. However, I would suggest running a large number of iterations just to 
make sure.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33568#issuecomment-6444848038

Reply via email to