summaryrefslogtreecommitdiff
path: root/ojluni/src/main/java/sun/misc/SharedSecrets.java
Commit message (Collapse)AuthorAgeFilesLines
* libcore: Add a libcore-patch-style scriptOrion Hodson2020-03-101-6/+6
| | | | | | | | | | | | Checks style against recommendations in http://go/libcore-patch-style and could be used a repohook. Update sources based on issues found with script. Bug: 111597837 Test: cd tools/patch-style/ && awk -f libcore-patch-style.awk test-input.txt Test: find . -type f | xargs awk -f tools/patch-style/libcore-patch-style.awk Change-Id: I641ed2951d00b848dec7a713e08b4b9fc076baea
* Fix racy static initializers in FileDescriptor and UnixChannelFactoryVictor Chang2018-06-061-0/+11
| | | | | | | | | | | | | | | | | - We forgot to update SharedSecrets from upstreaam to initialize javaIOFileDescriptorAccess, or we didn't have a proper way to replace the method Unsafe.ensureClassInitialized. - Upstream ensures that the field javaIOFileDescriptorAccess is not null by calling Unsafe.ensureClassInitialized(FileDescriptor.class). But Unsafe.ensureClassInitialized isn't supported in Android. Use Class.forName to initialize the FileDescriptor class. Bug: 80495283 Test: Cherrypicked this CL onto the branch where the problem was occurring. "./test/testrunner/testrunner.py --host -b --t 071-dexfile-map-clean --64" The test fails before the change and is passing now. Test: cts-tradefed run cts-dev -m CtsLibcoreTestCases -t libcore.sun.misc.SharedSecretsTest Change-Id: I77aec40f9a82416666b3c57fdde7c642aa0f419e
* Add change marker into sun.misc.SharedSecretsVictor Chang2018-06-061-2/+167
| | | | | | | | | - Add change marker to reduce the diff and make it easier to spot the change in upstream Bug: 35910877 Test: m Change-Id: I5941332a7ecea67d4bb36bb45c92230edd231a14
* Update sun.misc package to openJdk8u121-b13Przemyslaw Szczepaniak2017-06-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change covers changesets: changeset: 12095:dfa1648415a4 user: robm date: Tue Aug 16 16:09:00 2016 +0100 summary: 8151934: Resolve class resolution changeset: 11777:e6dcac8fe5ea user: igerasim date: Wed Mar 30 19:45:41 2016 +0300 summary: 8147771: Construction of static protection domains under Javax custom policy changeset: 11751:8b462a34c6da user: sjiang date: Fri Jan 22 13:41:10 2016 +0100 summary: 8144430: Improve JMX connections changeset: 10887:a25640f4e518 user: xuelei date: Thu Feb 05 14:20:19 2015 +0000 summary: 8067694: Improved certification checking changeset: 10247:2f1ae696419c parent: 10222:e644a7f00328 user: iklam date: Mon Oct 13 16:10:01 2014 -0700 summary: 8061651: Interface to the Lookup Index Cache to improve URLClassPath search time changeset: 9447:55e6175fb690 tag: jdk8u5-b04 user: alanb date: Tue Jan 14 11:48:57 2014 +0000 summary: 8031394: (sl) Fix exception handling in ServiceLoader changeset: 8788:69432cb5bca2 user: darcy date: Tue Nov 12 09:44:39 2013 -0800 summary: 8028229: Fix more raw types lint warning in core libraries Only the following files in sun.misc differ from upstream OpenJDK8u121-b13: MessageUtils.java SharedSecrets.java Unsafe.java URLClassPath.java Version.java (upstream has Version.java.template) VM.java Test: make & flash Bug: 38026696 Change-Id: Ie2f52eb05a10137d063fdbda97242d77f90513cf
* Add OpenJDK 8 java.nio.file packageShubham Ajmera2016-06-011-0/+47
Based on openJdk 8u60 except java.nio.FileTime. JDK8 FileTime is dependent on java.time package which is yet to be added, therefore, it is taken from openJdk 7u40. Bug: 27331465 Change-Id: If6969ad38edb1e160f2918bb40c94579a43f0346