#3829 Mac OSX version is missing any heap size setting

closed-fixed
Alan Ezust
None
5
2013-10-07
2013-09-18
Colin
No

Reported in bug 3534093 which has been closed with the incorrect comment that the report is not correct. Ezust asked why I think this is true and he pointed to http://stackoverflow.com/questions/4667483/how-is-the-default-java-heap-size-determined

However, as noted in that article running java -XX:+PrintFlagsFinal -version on my 8GB MacBook Pro (Snow Leopard) shows
InitialHeapSize = 0
MaxHeapSize = 132120576 which is in fact 128MB as the max heap size.

java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-10M4508)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)

I think bug 3534093 needs to be reopened.

Discussion

  • Alan Ezust
    Alan Ezust
    2013-09-18

    I don't know why it is so low on your system, but once we are on java 1.7, the problem goes away.
    So if this gets fixed at all, it only makes sense to fix this for jEdit 5.1 since jEdit 5.2 requires Java 1.7.
    In Java 1.7, on a macos 10.8 system with 2gb of RAM, I get a MaxHeapSize of
    uintx MaxHeapSize := 536870912 {product}

     
  • Alan Ezust
    Alan Ezust
    2013-10-07

    Committed 23230 to 5.1.x branch. If/when we release a 5.1.1, the heap size will be 512m.

     
  • Alan Ezust
    Alan Ezust
    2013-10-07

    • assigned_to: nobody --> ezust
    • status: open --> closed-fixed