Revert^2 "Reimplement ojluni JNI_OnLoad from scratch."
This reverts commit 70cd18f6. The initialization order has been fixed by moving Float, Double and System to the beginning as they are needed for resizing StringBuilder's internal buffer, used for class initializers of some other classes, notably Inet*Addrees. Also change libbase to be dynamically linked to avoid multiple definitions of gMinimumLogSeverity which caused some tests to fail as dalvikvm would initialize a copy in the libbase.so but JVM_Exit() would use its own copy in the libopenjdkd.so, ignoring the requested verbosity. Test: Pixel 2 XL boots. Test: cts-tradefed run cts --m vm-tests-tf Test: cts-tradefed run cts -d -m CtsLibcoreTestCases Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: Repeat previous 2 tests without preloaded-classes. (cherry picked from commit 1ba8b2ff) Change-Id: I2e5ca42615136ad77c368fb6ab75d18dc0734800 Merged-In: I4bb977e00f5c0028cafb000d70159043c5ec9fb9
Loading
Please sign in to comment