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

[FFI] Adjust the code with the release of the thunk heap #19852

Conversation

ChengJin01
Copy link

@ChengJin01 ChengJin01 commented Jul 12, 2024

The changes move the code intended for the release of thunk heap
to UpcallThunkMem.cpp so as to consolidate the code specific to
the thunk heap operations to one place, which includes:

  1. move freeUpcallMetaDataDoFn() to UpcallThunkMem.cpp
  2. move alll the code with the release of the thunk heap
    in freeJavaVM() to releaseThunkHeap() at UpcallThunkMem.cpp

Related: #19714

Signed-off-by: ChengJin01 [email protected]

@ChengJin01
Copy link
Author

ChengJin01 commented Jul 12, 2024

I'd like to consolidate part of the existing FFI specific code before tackling the issue with duplicate ffi_type for struct in #19714.

The PR has been verified in personal builds on all supported platform.

Reviewer: @tajila
FYI: @keithc-ca, @pshipton

@ChengJin01 ChengJin01 requested a review from tajila July 12, 2024 03:37
@ChengJin01 ChengJin01 added comp:vm project:panama Used to track Project Panama related work labels Jul 12, 2024
runtime/vm/UpcallThunkMem.cpp Outdated Show resolved Hide resolved
runtime/vm/UpcallThunkMem.cpp Outdated Show resolved Hide resolved
runtime/vm/UpcallThunkMem.cpp Outdated Show resolved Hide resolved
runtime/vm/UpcallThunkMem.cpp Outdated Show resolved Hide resolved
runtime/vm/vm_internal.h Outdated Show resolved Hide resolved
@keithc-ca
Copy link
Contributor

Jenkins test sanity amac jdk21

@ChengJin01 ChengJin01 force-pushed the ffi_code_adjustment_free_thunk_heap branch from d2dae55 to 08c0469 Compare July 15, 2024 16:49
The changes move the code intended for the release of thunk heap
to UpcallThunkMem.cpp so as to consolidate the code specific to
the thunk heap operations to one place, which includes:
1) move freeUpcallMetaDataDoFn() to UpcallThunkMem.cpp
2) move alll the code with the release of the thunk heap
   in freeJavaVM() to releaseThunkHeap() at UpcallThunkMem.cpp

Related: eclipse-openj9#19714

Signed-off-by: ChengJin01 <[email protected]>
@keithc-ca
Copy link
Contributor

I don't think the recent source changes invalidate the testing done in https://openj9-jenkins.osuosl.org/job/PullRequest-OpenJ9/5823.

@keithc-ca keithc-ca merged commit 4357425 into eclipse-openj9:master Jul 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm project:panama Used to track Project Panama related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants