libcore: Remove native calls in FileDescriptor <clinit>
Moves cloning of FileDescriptor in, out, and err descriptors
into a ZygoteHook. This avoids the need to run JNI methods
in FileDescriptor.<clinit> and enables native Core Platform
API checking of FileDescriptor descriptor and ownerId fields.
Bug: 144502743
Bug: 150680645
Test: art/test/run-test --host 001-HelloWorld
Test: art/tools/run-libcore-tests.sh --mode=host --variant=X64
Test: atest -s <serial> -c CtsLibcoreTestCases:libcore.java.io.FileDescriptorTest
Change-Id: I7c65da7555fa041a1e156f93049c8eb3aee2a2f9
3 files changed