On Wed, 23 Aug 2023 12:46:28 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> Hi Alan, should this be done similar to what is done here , using strerror + > strdup and throwing an exception with the generated error message ? > https://github.com/openjdk/jdk/blob/master/src/jdk.attach/linux/native/libattach/VirtualMachineImpl.c#L105 > Does not look very nice to me, but would probably work. I suspect the Unix implementation of prefs can easily be replaced with code that uses FileChannel. I think it would be good to try this and would allow the old native code to be removed. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1689907432