Bug 209722 - [launcher][leopard] eclipse.ini has outdated options for Mac OSX Leopard JVM
Summary: [launcher][leopard] eclipse.ini has outdated options for Mac OSX Leopard JVM
Status: CLOSED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Launcher (show other bugs)
Version: 3.3.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: polish
: 286043 (view as bug list)
Depends on:
Blocks: 472698
  Show dependency tree
 
Reported: 2007-11-13 17:34 EST by maarten meijer CLA
Modified: 2019-10-06 08:43 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maarten meijer CLA 2007-11-13 17:34:26 EST
Build ID: M20071023-1652

Steps To Reproduce:
1.Startup Eclipse 3.3.1.1 on Leopard
2.Look in the system.log
3.see outdated options
Then these are followed by lot of PermGen and out of memory errors


More information:
It shows:
Nov 13 23:28:50 /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse[2469]: Unrecognized Java VM option ignored: -Xdock:icon=../Resources/Eclipse.icns
Nov 13 23:28:50 /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse[2469]: Unrecognized Java VM option ignored: -XstartOnFirstThread
Nov 13 23:28:56 /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse[2469]: CPSSetForegroundOperationState(): This call is deprecated and should not be called anymore.
Comment 1 Andrew Niefer CLA 2007-11-13 17:53:19 EST
See bug 209722 comment #5, the Xdock:icon, Xdock:name and XstartOnFirstThread are all vm args normally consumed by the java launcher and the eclipse launcher should consume them as well.  This is not specific to leopard.

I don't know about CPSSetForegroundOperationState, we do not make any calls to that function in the eclipse launcher.
Comment 2 maarten meijer CLA 2007-11-13 18:24:45 EST
(In reply to comment #1)
> See bug 209722 comment #5,
Which bug did you really mean?

QuadBox:~ maarten$ java -X
    -Xmixed           mixed mode execution (default)
    -Xint             interpreted mode execution only
    -Xbootclasspath:<directories and zip/jar files separated by :>
                      set search path for bootstrap classes and resources
    -Xbootclasspath/a:<directories and zip/jar files separated by :>
                      append to end of bootstrap class path
    -Xbootclasspath/p:<directories and zip/jar files separated by :>
                      prepend in front of bootstrap class path
    -Xnoclassgc       disable class garbage collection
    -Xloggc:<file>    log GC status to a file with time stamps
    -Xbatch           disable background compilation
    -Xms<size>        set initial Java heap size
    -Xmx<size>        set maximum Java heap size
    -Xss<size>        set java thread stack size
    -Xprof            output cpu profiling data
    -Xfuture          enable strictest checks, anticipating future default
    -Xrs              reduce use of OS signals by Java/VM (see documentation)
    -Xdock:name=<application name>
                      override default application name displayed in dock
    -Xdock:icon=<path to icon file>
                      override default icon displayed in dock
    -Xcheck:jni       perform additional checks for JNI functions
    -Xshare:off	      do not attempt to use shared class data
    -Xshare:auto      use shared class data if possible (default)
    -Xshare:on	      require using shared class data, otherwise fail.

The -X options are non-standard and subject to change without notice.

No -XX though...
Comment 3 Andrew Niefer CLA 2007-11-14 11:48:15 EST
I meant bug 205990.  Because we start the vm using the JNI invocation API, any options consumed by the java launcher are no longer getting consumsed and the vm itself may not recognize them.
Comment 4 Thomas Watson CLA 2008-02-13 14:31:24 EST
Andrew, this fix needed for 3.4?
Comment 5 Andrew Niefer CLA 2008-02-13 15:10:44 EST
Will try and look at this post M6
Comment 6 Andrew Niefer CLA 2008-05-01 14:20:36 EDT
not going to make M7
Comment 7 Andrew Niefer CLA 2008-05-09 17:47:58 EDT
This will not make 3.4.  

There exists already a place to act on vm args and potentially filter some out, however this location would break the dock for restart/switch workspace.  

VM arguments are passed both to the VM and also to Eclipse itself (so that it can set the eclipse.vmargs property used for restart).  These arguments would need to be filtered from the list passed to the vm but not the list passed to eclipse.
Comment 8 Thomas Watson CLA 2009-04-16 16:05:13 EDT
(In reply to comment #7)
> This will not make 3.4.  
> 
> There exists already a place to act on vm args and potentially filter some out,
> however this location would break the dock for restart/switch workspace.  
> 
> VM arguments are passed both to the VM and also to Eclipse itself (so that it
> can set the eclipse.vmargs property used for restart).  These arguments would
> need to be filtered from the list passed to the vm but not the list passed to
> eclipse.
> 

This is still an issue.  The system log continues to be filled with these messages.  What you describe above sounds rather complicated.  I would suggest deferring this bug out of 3.5.
Comment 9 maarten meijer CLA 2009-04-24 06:46:13 EDT
This is still an issue in Galileo in all of carbon/cocoa and cocoa-64bit
Apr 24 12:13:46 .../eclipse35M6-cocoa/Eclipse.app/Contents/MacOS/eclipse[46153]: Unrecognized Java VM option ignored: -Xdock:icon=../Resources/Eclipse.icns
Apr 24 12:16:34  .../eclipse35M6-carbon/Eclipse.app/Contents/MacOS/eclipse[73209]: Unrecognized Java VM option ignored: -Xdock:icon=../Resources/Eclipse.icns
Apr 24 12:24:57 .../eclipse35M6-carbon/Eclipse.app/Contents/MacOS/eclipse[58499]: Unrecognized Java VM option ignored: -Xdock:icon=../Resources/Eclipse.icns

Maybe the Mac Developers can setup geektool from http://projects.tynsoe.org/en/geektool/
and use a shell script like this grep "Unrecognized Java VM option" /var/log/system.log to make these errors show up on the desktop

Also handy to monitor lots of other logs...
Comment 10 Andrew Niefer CLA 2009-06-03 15:43:19 EDT
We didn't end up having much time in 3.5 for launcher improvements, this did not make it.
Comment 11 Andrew Niefer CLA 2009-08-11 10:13:46 EDT
*** Bug 286043 has been marked as a duplicate of this bug. ***
Comment 12 Eclipse Genie CLA 2019-10-06 08:43:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.