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

feat: allocateInstance & invokeConstructor #11

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

rushiiMachine
Copy link
Member

@rushiiMachine rushiiMachine commented Aug 28, 2024

  • Simpler native impl of sun.misc.Unsafe#allocateInstance
  • Invoking constructors on existing instances for use in conjunction with allocateInstance

This is pretty useful
It's possible to do the second one in pure java as well but it depends on a pretty high API level so nop

@rushiiMachine rushiiMachine merged commit 25a79d4 into main Aug 30, 2024
1 check passed
@rushiiMachine rushiiMachine deleted the feat/invoke-constructor branch August 30, 2024 18:23
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.

2 participants