google / end-to-end

End-To-End is a crypto library to encrypt, decrypt, digital sign, and verify signed messages (implementing OpenPGP)
Apache License 2.0
4.13k stars 298 forks source link

Fixing the java.lang.OutOfMemoryError Error that happens on some build envs, re: #367 #369

Closed WowSuchRicky closed 8 years ago

WowSuchRicky commented 8 years ago

This is re: #367 . I ran into this on a VM, saw there was no PR yet, and made the change.

Although @koto suggested putting @valo 's change (export _JAVA_OPTIONS="-Xms512m -Xmx1024m") directly into do.sh, I did it in a way that will not clobber an existing _JAVA_OPTIONS env var that a user may already have set for other builds in their system.

If there is anything I missed or any issues, please let me know and I will fix them for the PR. I also would suggest probably making it more modular than this, unless these are the bare minimums for compilation which would be fine too.