You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
}
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?
Godbolt Sample
The text was updated successfully, but these errors were encountered: