RFR: 8335553: [Graal] Compiler thread calls into jdk.internal.vm.VMSupport.decodeAndThrowThrowable and crashes in OOM situation [v2]

Yudi Zheng yzheng at openjdk.org
Tue Jul 9 15:01:34 UTC 2024


On Tue, 9 Jul 2024 14:42:42 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> test/jdk/jdk/internal/vm/TestTranslatedException.java line 167:
>> 
>>> 165:     private static void assertThrowableEquals(Throwable originalIn, Throwable decodedIn) {
>>> 166:         Throwable original = originalIn;
>>> 167:         Throwable decoded = decodedIn;
>> 
>> What is the purpose of this renaming?
>
> So that the printing down the bottom of this message shows the complete throwable, not just the cause on which the comparison failed.

Thanks! I missed the reassign in the folded unchanged code.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20083#discussion_r1670683400


More information about the core-libs-dev mailing list