Skip to content

Commit

Permalink
Adapt methods for fast calls
Browse files Browse the repository at this point in the history
Summary:
Changes all possible native JNI methods to critical methods.

For now, this only changes Android up and including v7. In order to be prepared for the `CriticalNative` annotation in Android v8, the following restrictions apply:

- Qualifying methods must be static (this is also enforced for Dalvik / Android v4)
- Method implementations can only consume primitive JNI types (`boolean`, jchar`, etc.)

Reviewed By: priteshrnandgaonkar

Differential Revision: D9943868

fbshipit-source-id: 728817eb37822b717fd3daf94cd9f02b42c17db6
  • Loading branch information
davidaurelio authored and facebook-github-bot committed Sep 25, 2018
1 parent 554d8cd commit 6e46eec
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 281 deletions.
Loading

0 comments on commit 6e46eec

Please sign in to comment.