RFR: 8306460: Clear JVM_ACC_QUEUED flag on methods when dumping dynamic CDS archive

Ashutosh Mehra duke at openjdk.org
Tue Apr 25 22:17:11 UTC 2023


On Tue, 25 Apr 2023 22:10:04 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> This patch clears the method's "queued_for_compilation" flag when dumping the method in CDS archive. Also added an assert in `Method::restore_unshareable_info()` that the method being restored should not have that flag set.
>
> Yes, you're right, all these flags shouldn't be in the archive.  I have a patch for JDK-8306851 which will make it easier to unset all of these flags (except has_loops/has_loops_init, which we want set in the archive).  Maybe this change should wait.

@coleenp that makes sense. Once your change is in, I can update this to clear all the flags that shouldn't be in the archived version.

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

PR Comment: https://git.openjdk.org/jdk/pull/13652#issuecomment-1522489550


More information about the hotspot-dev mailing list