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
{{ message }}
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
It produces Exception: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Creates a new array of the specified size, with all elements initialized to null char (`\u0000').
Similar code in Java won't produce an exception:
char[]a = new char[99912345];
Same issue for other primitive arrays, as BooleanArray BooleanArray(99912345)
Checked with Kotlin Playground
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When creating a primitive array with big size as:
CharArray(99912345)
It produces Exception:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Creates a new array of the specified size, with all elements initialized to null char (`\u0000').
Similar code in Java won't produce an exception:
char[]a = new char[99912345];
Same issue for other primitive arrays, as BooleanArray
BooleanArray(99912345)
Checked with Kotlin Playground
The text was updated successfully, but these errors were encountered: