On Tue, 24 Nov 2026 05:32:55 GMT, David Holmes <[email protected]> wrote:

>> Kevin Walls has updated the pull request incrementally with two additional 
>> commits since the last revision:
>> 
>>  - Linux library list: use NT_FILE list and match for .so, to not count aot 
>> cache (which is read only) as a library to avoid mapping from core (also 
>> *.jsa).  Show revivalhelper retries only if above an interesting level, as 
>> for Linux aarch64 two or three tries is common enough to be noisy if always 
>> printing.
>>  - test tweak
>
> Hi Kevin,
> 
> I started taking a deeper look at this as I think it should be reaching the 
> "polishing" phase. To that end I have a number of meta comments:
> - I think we should move key bits of the code into a new class and file that 
> makes it explicit what it is. If that class is made a friend of others then 
> we can avoid localised "revival_init" logic.
> - I don't like seeing `is_revived` on the common code paths where they will 
> add overhead to every use. Not knowing exactly what is being avoided it is 
> hard to suggest possible alternatives in some cases.
> - There is inconsistent use of guarantee/assert checks for `is_revived`. I 
> don't think we really need to guard this code against unintentional callers - 
> especially if it gets relocated.
> - There is a major lack of explanatory comments. Again code relocation makes 
> it easier to document things and describe the big picture.
> 
> On the functional side it appears that there are places where you are trying 
> to pretend that the revived VMThread is a JavaThread - which I can't see how 
> it can work. You would be reading random memory as JavaThread fields, or 
> using random memory as vtable entries. ??
> 
> I haven't yet looked into the actual librevival/revivalHelper code yet.
> 
> Thanks

Thanks @dholmes-ora for the comments, I'll work through them.

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

PR Comment: https://git.openjdk.org/jdk/pull/31011#issuecomment-7128986376

Reply via email to