-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Support for JARs with size greater than 2 Gigs #522
Comments
Turns out it's not really a limitation of IKVM at all. I changed the
|
Taking a deeper look, there's probably a hard limit of 3 or 2 GB for .NET assembly sizes as well, at least on Windows, as they are PE files, and ultimately loaded with LoadLibrary. I don't have a workaround for you other than to not put this particular data in a JAR, etc. |
Thank you for your response, @wasabii. As a workaround what I did was to modify the Jar itself and split it into 2 Jars and changed the metadata and got it working, I haven't fully tested it but it seems to be working. Unfortunately, I am not the author of those packages (yes it's more than 2 source packages and around 4 gigs in size) so I have very little control over what I can do with them. |
As a feature, it might be useful to have the ability for ikvmc to generate assemblies with external resources as files or something. |
It's actually a great idea. |
Currently the method
WriteResources
underIKVM.Tools.Importer.CompilerClassLoader
usesMemoryStream
which is limited to 2 gigs in size whereas I'm working with JAR files (that contain CUDA dlls) having size greater than 2 gigs which causesIO_StreamTooLong
exception.Are there any workarounds?
The text was updated successfully, but these errors were encountered: