[crac] RFR: Introduce per-Priority Context with different policies [v2]
Anton Kozlov
akozlov at openjdk.org
Tue May 30 10:26:35 UTC 2023
On Tue, 30 May 2023 06:25:08 GMT, Radim Vansa <duke at openjdk.org> wrote:
>> This makes sense. As a thought excercise, it is possible to have add a last Resource, that will query all pending exceptions in all previous contextes, or make this context block once all beforeCheckpoint are done and there is nowhere to report exceptions. Both are also possible for user contextes, outside of the system classes.
>
> If you're speaking about querying Contexts, that means extending its API for traversing and fetching those. Alternatively, should the contexts report exceptions to a well-known resource this resource would become a part of the API.
It is possible to add query method to JDK contextes without changing public context interface. The same way, the alternative won't require changes in the public API (it will be a convention between JDK contextexes and the well-known resource).
-------------
PR Review Comment: https://git.openjdk.org/crac/pull/74#discussion_r1210065601
More information about the crac-dev
mailing list