Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343434 - Consider changing defaults for using JNI vs forking on different platforms
Summary: Consider changing defaults for using JNI vs forking on different platforms
Status: RESOLVED WORKSFORME
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Launcher (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 12:03 EDT by Andrew Niefer CLA
Modified: 2019-09-04 01:57 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2011-04-20 12:03:20 EDT
There are some platforms that still default to forking the vm in a separate process because those platform originally had problems with the JNI invocation API which seem to be better with modern vms.  We should consider changing to use JNI by default.

All the linux platforms except x86 currently default to forking the vm, as well as hpux.
Comment 1 James Blackburn CLA 2011-04-20 13:09:27 EDT
Given bug 339788 can this be configurable?

I primarily use x86_64 and it has been useful in the past for me to see the Java invocation command (to debug launch parameters, etc.).  Presumably jstack, jps, jconsole etc. work for the JNI'd java?
Comment 2 Andrew Niefer CLA 2011-04-20 14:01:47 EDT
On all platforms except the mac, you can specify which one to use by setting the -vm argument.

If the -vm arg points to a java executable, then we will fork.  If the -vm arg points to a (libjvm.so/jvm.dll) shared library, then we will attempt JNI invocation.
Comment 3 Eclipse Genie CLA 2018-10-26 20:28:18 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.
Comment 4 Lars Vogel CLA 2019-09-04 01:55:13 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.
Comment 5 Lars Vogel CLA 2019-09-04 01:57:03 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.