Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-4618

[drlvm][jedit] DRLVM doesn't support -ms and -mx options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      RI supports options -ms (equivalent to -Xms) and -mx (equivalent to -Xmx) though they're not documented or listed in help.

      However these options are used by some applications, for example by jEdit launcher script for Linux.

      DRLVM doesn't support these options, and because of this jEdit launcher doesn't work:

      $ jedit
      Unknown option -mx32m
      Use java -help to get help on command line options

      This problem is easily workarounded, as jEdit launcher is very simple and its jar can be easily launched manually, however this situation may confuse users.

      As a compact reproducer, the trivial test may be used:

      public class Test {
      public static void main(String[] args)

      { System.out.println("SUCCESS"); }

      }

      $ java -ms16M -mx32M Test

      Output on RI:

      SUCCESS

      Output on DRLVM:

      Unknown option -ms16M
      Use java -help to get help on command line options

      Attachments

        1. H4618.patch
          1 kB
          Pavel Pervov

        Issue Links

          Activity

            People

              gshimansky Gregory Shimansky
              vmz Vasily Zakharov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: