< prev index next >
modules/javafx.graphics/src/main/java/com/sun/marlin/DoubleArrayCache.java
Print this page
rev 10819 : 8195801: Replace jdk.internal.misc.Unsafe with sun.misc.Unsafe in MarlinFX
Reviewed-by:
*** 1,7 ****
/*
! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 228,243 ****
}
}
}
static double[] createArray(final int length, final boolean clean) {
- if (clean) {
return new double[length];
}
- // use JDK9 Unsafe.allocateUninitializedArray(class, length):
- return (double[]) OffHeapArray.UNSAFE.allocateUninitializedArray(double.class, length);
- }
static void fill(final double[] array, final int fromIndex,
final int toIndex, final double value)
{
// clear array data:
--- 228,239 ----
< prev index next >