Skip to content

Commit

Permalink
Merge pull request quarkusio#38423 from jponge/fix/simplify-netty-jct…
Browse files Browse the repository at this point in the history
…ools-unsafe

Simplify Netty unsafe build item configuration for the shaded JCTools queues
  • Loading branch information
geoand authored Jan 29, 2024
2 parents c0faacf + ab39b18 commit ffd08f5
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,23 +254,8 @@ public List<UnsafeAccessedFieldBuildItem> unsafeAccessedFields() {
return Arrays.asList(
new UnsafeAccessedFieldBuildItem("sun.nio.ch.SelectorImpl", "selectedKeys"),
new UnsafeAccessedFieldBuildItem("sun.nio.ch.SelectorImpl", "publicSelectedKeys"),

new UnsafeAccessedFieldBuildItem(
"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerIndexField", "producerIndex"),
new UnsafeAccessedFieldBuildItem(
"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerLimitField", "producerLimit"),
new UnsafeAccessedFieldBuildItem(
"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueConsumerIndexField", "consumerIndex"),

new UnsafeAccessedFieldBuildItem(
"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueProducerFields",
"producerIndex"),
new UnsafeAccessedFieldBuildItem(
"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueColdProducerFields",
"producerLimit"),
new UnsafeAccessedFieldBuildItem(
"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueConsumerFields",
"consumerIndex"));
new UnsafeAccessedFieldBuildItem("io.netty.util.internal.shaded.org.jctools.util.UnsafeRefArrayAccess",
"REF_ELEMENT_SHIFT"));
}

@BuildStep
Expand Down

0 comments on commit ffd08f5

Please sign in to comment.