-
-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
A third-party component we are consuming uses Unsafe.arrayIndexScale(Object[].class), which returns unexpected values (I think 1, instead of 4 or 8).
Should this be amended to return IntPtr.Size for Object[]-arrays as well?
class Main {
public static void main(String[] args)
{
System.out.println(sun.misc.Unsafe.ARRAY_OBJECT_BASE_OFFSET);
System.out.println(sun.misc.Unsafe.ARRAY_OBJECT_INDEX_SCALE);
}
}
Program stdout
16
4
Metadata
Metadata
Assignees
Labels
No labels