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

Question regarding getQuickCompiledCodeSize #27

Open
AeonLucid opened this issue Nov 26, 2019 · 0 comments
Open

Question regarding getQuickCompiledCodeSize #27

AeonLucid opened this issue Nov 26, 2019 · 0 comments

Comments

@AeonLucid
Copy link

I read your thesis and was trying to port your method to the modern Android SDK. However I was having issues porting over getQuickCompiledCodeSize. It returns normal values on SDK 23 but has been broken since SDK 24. It reads garbage data. Because of that, I was wondering how you even added support for SDK 24 - 26, was it untested?

Also, is this what the code tries to do?
This is from Android 6 source code art\runtime\art_method-inl.h.

inline uint32_t ArtMethod::GetCodeSize(const void* code) {
  if (code == nullptr) {
    return 0u;
  }
  return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].code_size_;
}
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

No branches or pull requests

1 participant