diff options
author | Paul Duffin <paulduffin@google.com> | 2018-07-20 14:40:41 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2018-07-23 12:37:59 +0100 |
commit | eb3b7d96e4c46c5fe4b733ae010baf06545e0589 (patch) | |
tree | e520198abab35600c11c078716f99cab1ca2b1e9 /annotations/generate_annotated_java_files.py | |
parent | f02365bf0478dd21bee61b5b452aeec4e804fba4 (diff) |
Verify java.nio.Bits against upstream OpenJDK 8u121-b13
Quite a lot of the patched methods are actually unused in Android so
they were commented out and the patches reverted as there is no point
in maintaining patches on code that is never called.
The patches were cleaned up a little bit as follows:
* Android is always little-endian.
- Moved the setting of the byteOrder field into the static block so
as to remove one patch. Removed some commented out code from
byteOrder() which does not match upstream. This patch is largely
an optimization and simplification so we could remove it
completely without changing behavior. However, it would make it
a lot less obvious that we only support little endian so I think
it is worth keeping.
* Direct memory management unused on Android.
* Bulk get/put methods are unused on Android.
- These are unused so just reverted the patches on upstream code and
commented them all out. They are two separate patches as they
provide different capabilities.
* Remove support for java.lang.management.
- Android does not support the java.lang.management package which
provides beans to monitor the JVM runtime. Updated the marker to
make it clear why this is removed.
Commenting out the unused native methods necessitated the cleaning up
of the native code.
Bug: 110251104
Test: make dist, flash, CtsLibcoreTestCases
Change-Id: Ia1ccf6ae3ca0f13c8bb0b5ae5a3b5a49d0d4e855
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions