Skip to content
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

Ensure IovArray is usuable without sun.misc.Unsafe #10870

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

normanmaurer
Copy link
Member

@normanmaurer normanmaurer commented Dec 16, 2020

Motivation:

#10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress()

Modifications:

  • Also fix the memoryAddress(offset) method.
  • Adjust unit test to also test this.

Result:

Fixes #10813 completely.

@normanmaurer normanmaurer changed the title One line description of your change Ensure IovArray is usuable without sun.misc.Unsafe Dec 16, 2020
@chrisvest
Copy link
Contributor

The motivation in the PR and commit is incomplete.

Copy link
Contributor

@chrisvest chrisvest left a comment

Choose a reason for hiding this comment

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

Changes look fine otherwise. Just need the commit message to be fixed up.

Motivation:

#10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress()

Modifications:

- Also fix the memoryAddress(offset) method.
_ Adjust unit test to also test this.

Result:

Fixes #10813 completely.
@normanmaurer
Copy link
Member Author

@chrisvest not sure how this happened... done :/

@normanmaurer normanmaurer merged commit 882c111 into 4.1 Dec 16, 2020
@normanmaurer normanmaurer deleted the memory_address_fix_again branch December 16, 2020 19:46
normanmaurer added a commit that referenced this pull request Dec 16, 2020
Motivation:

#10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress()

Modifications:

- Also fix the memoryAddress(offset) method.
_ Adjust unit test to also test this.

Result:

Fixes #10813 completely.
@normanmaurer normanmaurer added this to the 4.1.56.Final milestone Dec 17, 2020
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
Motivation:

netty#10814 did fix a bug where we did try to call memoryAddress() even tho this is not supported. Unfortunally this fix was only applied for one method and so we missed another method which then could throw an exception when we called memoryAddress()

Modifications:

- Also fix the memoryAddress(offset) method.
_ Adjust unit test to also test this.

Result:

Fixes netty#10813 completely.
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.

UnsupportedOperationException thrown on macos with KQueue in 4.1.54.Final with io.netty.noUnsafe set to true
2 participants