run-java 414 B

12345678910111213
  1. #!/bin/bash
  2. JAVA_FLAGS="-Xmx4m -Xms1m -XX:NewSize=256k -XX:MaxNewSize=1m -Xss1m -XX:+UseSerialGC -XX:-UsePerfData -XX:+DisableExplicitGC -XX:PermSize=1m -XX:MaxPermSize=4m -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=30"
  3. if [ "$1" = "-native" ]; then
  4. shift
  5. `make java_home`/bin/java $JAVA_FLAGS $*
  6. elif [ "$1" = "-gdb" ]; then
  7. shift
  8. ./java.manifest -gdb $JAVA_FLAGS $*
  9. else
  10. ./java.manifest $JAVA_FLAGS $*
  11. fi