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

Misc. CodeCacheManager API refactoring #3542

Merged
merged 3 commits into from
Feb 4, 2019

Conversation

0xdaryl
Copy link
Contributor

@0xdaryl 0xdaryl commented Feb 4, 2019

  • Relocate CodeCache::allocate function to CodeCacheManager
  • Delete unused functionality from CodeCacheManager
  • Remove reservationInterfaceCache from CodeCacheManager

@0xdaryl
Copy link
Contributor Author

0xdaryl commented Feb 4, 2019

@genie-omr build all

The `CodeCache::allocate()` function simply called back to the CodeCacheManager
to accomplish nearly all of its operations (except reserving a newly added
CodeCache).  It makes more sense for the CodeCacheManager to own and perform
this functionality.

Give the function a more descriptive name (`allocateCodeCacheFromNewSegment`)
and provide some API documentation.

Re-route the current `CodeCache::allocate()` function to call the CodeCacheManager
version while downstream projects are changed.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
`dumpCodeCaches()` and empty enum `ErrorCode` are not used in OMR nor
any known downstream projects.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
Function has been relocated to OpenJ9.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
Copy link
Contributor

@Leonardo2718 Leonardo2718 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Leonardo2718
Copy link
Contributor

@genie-omr build all

(for good measure)

@Leonardo2718
Copy link
Contributor

AppVeyor build failed because of infra problems. Restarted.

@Leonardo2718 Leonardo2718 self-assigned this Feb 4, 2019
@Leonardo2718 Leonardo2718 merged commit 9ba601b into eclipse-omr:master Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants