Skip to content

Will this project continue to be updated? #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Mrhs121 opened this issue Oct 12, 2023 · 2 comments
Open

Will this project continue to be updated? #80

Mrhs121 opened this issue Oct 12, 2023 · 2 comments

Comments

@Mrhs121
Copy link

Mrhs121 commented Oct 12, 2023

Will this bug continue to be fixed? #63

I have adopted his patch, but the error of 'requested array size exceeds vm limit' still occurs.

Looking forward to fixing this bug.

@Mrhs121
Copy link
Author

Mrhs121 commented Oct 12, 2023

I'm alos trying to create huge array of Object:

val arr = LArray.of[AnyRef](10L + Integer.MAX_VALUE)

failed with exception:

Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit
	at scala.reflect.ManifestFactory$ObjectManifest.newArray(Manifest.scala:258)
	at scala.reflect.ManifestFactory$ObjectManifest.newArray(Manifest.scala:257)
	at xerial.larray.LObjectArrayLarge.$anonfun$array$1(LArray.scala:1150)
	at xerial.larray.LObjectArrayLarge$$Lambda$5/510113906.apply$mcVI$sp(Unknown Source)
	at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158)
	at xerial.larray.LObjectArrayLarge.<init>(LArray.scala:1148)
	at xerial.larray.LObjectArray$.ofDim(LArray.scala:1061)
	at xerial.larray.LArray$.of(LArray.scala:403)
	at org.example.App$.testBigArray(App.scala:42)
	at org.example.App$.main(App.scala:102)
	at org.example.App.main(App.scala)

@gortiz
Copy link
Contributor

gortiz commented Apr 8, 2024

It seems the project is in a maintenance state and it looks to be difficult to create new versions. The author has been working in another similar project (see #75 (comment)).

Anyway, for future readers, remember that Foreign Memory API (JEP 454) is production ready in Java 22 and AFAIK it covers all features from this library without needing to use JNI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants