[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Re: RFR: 8316994: Avoid modifying ClassLoader and Module objects during -Xshare:dump
From:       Ioi Lam <iklam () openjdk ! org>
Date:       2023-09-28 1:50:37
Message-ID: sfVzVk3e1vR6GaUH3x8bPSNIFeyphFC3pbe_hKAE6FQ=.b6cecee4-b480-402d-8ecf-3940872f315c () github ! com
[Download RAW message or body]

On Wed, 27 Sep 2023 21:16:19 GMT, Matias Saavedra Silva <matsaave@openjdk.org> wrote:

> > When dumping the module graph, we set some native pointers in `ClassLoader` and \
> > `Module` objects to null. 
> > We used to modify the copies of these objects in the actual heap. This makes \
> > `InstanceKlass::class_loader_data()` return the wrong value inside \
> > `VM_PopulateDumpSharedSpace`. 
> > Instead, this PR modifies the copies of the objects in the `ArchiveHeapWriter` \
> > buffer. This also means that the `HeapShared::restore_loader_data()` function is \
> > no longer needed.
> 
> LGTM! Thanks for this improvement

Thanks @matias9927 and @calvinccheung for the review.
Passed tiers 1~4

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

PR Comment: https://git.openjdk.org/jdk/pull/15937#issuecomment-1738324091


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic