On Tue, 15 Nov 2022 18:47:39 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> 
wrote:

>> This PR contains the API and implementation changes for JEP-434 [1]. A more 
>> detailed description of such changes, to avoid repetitions during the review 
>> process, is included as a separate comment.
>> 
>> [1] - https://openjdk.org/jeps/434
>
> Maurizio Cimadamore has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Fix typo in SegmentScope javadoc

src/java.base/share/classes/jdk/internal/foreign/MemorySessionImpl.java line 77:

> 75:         } catch (Throwable ex) {
> 76:             throw new ExceptionInInitializerError(ex);
> 77:         }

The above `catch` clause should only catch `Exception`s, not `Throwable`s, as 
the latter would hide VM errors such as `StackOverflowError` or 
`OutOfMemoryError`.

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

PR: https://git.openjdk.org/jdk/pull/10872

Reply via email to