On Tue, 17 Oct 2023 17:31:30 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
> This PR moves turns default methods in `MemorySegment` and `MemoryLayout` > into ordinary abstract methods. > These interfaces cannot be subclasses by developers (they are sealed), so > there is no reson for having default methods there. Also, default methods can > have some detrimental effects, as they cause the interfaces to be initialized > more eagerly. This pull request has now been integrated. Changeset: 15acf4b8 Author: Maurizio Cimadamore <mcimadam...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/15acf4b8d7cffcd0d74bf1b9c43cde9acaf31ea9 Stats: 634 lines in 4 files changed: 357 ins; 227 del; 50 mod 8318324: Drop redundant default methods from FFM API Reviewed-by: jvernee ------------- PR: https://git.openjdk.org/jdk/pull/16224