Skip to content

Add AOT support for Pulsar binder #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

onobc
Copy link
Collaborator

@onobc onobc commented Mar 23, 2023

  • Adds native hints to allow the binder to run in a GraalVM native image.

- Adds native hints to allow the
  binder to run in a GraalVM native
  image.
@onobc onobc requested a review from sobychacko March 23, 2023 02:20
@@ -29,10 +30,6 @@
import org.apache.pulsar.client.impl.conf.ProducerConfigurationData;
import org.apache.pulsar.client.util.SecretsSerializer;
import org.apache.pulsar.common.protocol.Commands;
import org.apache.pulsar.shade.io.netty.buffer.AbstractByteBufAllocator;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and moved these shaded ones in w/ their other shaded family members using the string API rather than direct imports.

"org.apache.pulsar.shade.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerIndexField",
"org.apache.pulsar.shade.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerLimitField",
"org.apache.pulsar.shade.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueConsumerIndexField")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also compressed these into a single block. The value of trying to give the strictest access is not worth the initial effort. That can be left for a later tuning exercise.

@onobc
Copy link
Collaborator Author

onobc commented Mar 23, 2023

@sobychacko I am going to merge this one so that the PR in AOT smoke tests can pick these changes up. I will gladly make any changes post merge if need be.

@onobc onobc merged commit 488c5d2 into spring-projects:main Mar 23, 2023
@onobc onobc deleted the cbono-binder-aot branch March 23, 2023 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant