This commit is contained in:
Jesper Wilhelmsson 2017-10-30 21:23:10 +01:00
commit b97f1bcb37
720 changed files with 17256 additions and 20763 deletions

View file

@ -2381,7 +2381,7 @@ public abstract class ClassLoader {
private int jniVersion;
// the class from which the library is loaded, also indicates
// the loader this native library belongs.
private final Class<?> fromClass;
private Class<?> fromClass;
// the canonicalized name of the native library.
// or static library name
String name;
@ -2404,6 +2404,8 @@ public abstract class ClassLoader {
protected void finalize() {
synchronized (loadedLibraryNames) {
if (fromClass.getClassLoader() != null && loaded) {
this.fromClass = null; // no context when unloaded
/* remove the native library name */
int size = loadedLibraryNames.size();
for (int i = 0; i < size; i++) {

View file

@ -1094,6 +1094,7 @@ public final class Math {
* @return the result
* @since 9
*/
@HotSpotIntrinsicCandidate
public static long multiplyHigh(long x, long y) {
if (x < 0 || y < 0) {
// Use technique from section 8-2 of Henry S. Warren, Jr.,