Skip to content

Commit

Permalink
[GR-53455] Exclude nativeLibraryLockMap and Thread fields when includ…
Browse files Browse the repository at this point in the history
…ing all

PullRequest: graal/17538
  • Loading branch information
Zeavee committed Apr 23, 2024
2 parents a4495f9 + 04ff5f7 commit 224a292
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
import jdk.graal.compiler.phases.common.BoxNodeIdentityPhase;
import jdk.graal.compiler.phases.common.CanonicalizerPhase;
import jdk.graal.compiler.virtual.phases.ea.PartialEscapePhase;
import jdk.internal.loader.NativeLibraries;
import jdk.vm.ci.meta.DeoptimizationReason;
import jdk.vm.ci.meta.JavaConstant;
import jdk.vm.ci.meta.ResolvedJavaField;
Expand Down Expand Up @@ -797,6 +798,8 @@ private void initializeExcludedFields() {
excludedFields.add(ReflectionUtil.lookupField(VMThreadLocalInfo.class, "sizeSupplier"));
/* This field cannot be written to (see documentation) */
excludedFields.add(ReflectionUtil.lookupField(Counter.Group.class, "enabled"));
/* This field can contain a reference to a Thread, which is not allowed in the heap */
excludedFields.add(ReflectionUtil.lookupField(NativeLibraries.class, "nativeLibraryLockMap"));
}

@Override
Expand Down

0 comments on commit 224a292

Please sign in to comment.