RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v27]

ExE Boss duke at openjdk.org
Thu Nov 17 16:20:29 UTC 2022


On Tue, 15 Nov 2022 18:47:39 GMT, Maurizio Cimadamore <mcimadamore at 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


More information about the core-libs-dev mailing list