[crac] RFR: Handle open file descriptors with configurable policies [v9]

Radim Vansa rvansa at openjdk.org
Mon Jul 3 14:27:30 UTC 2023


On Mon, 3 Jul 2023 14:11:22 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:

>> Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Cosmetic fixes (imports)
>
> src/java.base/share/classes/java/io/FileDescriptor.java line 75:
> 
>> 73:                     claimedFDs.claimFd(self, self, null);
>> 74:                 }
>> 75: 
> 
> Can we have a policy for a FileDescriptor to prevent it from throwing an exception? Suppose we have an issue that a FileDescriptor throws due to a race, e.g. a containing object referring to an FD was GCed, FD is about to be GCed, but still alive, so FD will throw an exception. It will be useful to suppress the exception by the configuration, although of course, it's discouraged.

How would you expect to specify *which* FD should not throw, without fetching the details through native code? Would a numeric identifier (or full wildcard) be sufficient?

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

PR Review Comment: https://git.openjdk.org/crac/pull/69#discussion_r1250962867


More information about the crac-dev mailing list