-XstartOnFirstThread for OS X

Michael Franz mvfranz at gmail.com
Tue Dec 2 19:27:01 PST 2008


On Tue, Dec 2, 2008 at 9:10 PM, Mike Swingler <swingler at apple.com> wrote:

> On Nov 26, 2008, at 8:19 PM, Michael Franz wrote:
>
>  Hi,
>>
>> I have been thinking about this and have not come up with a way for SWT to
>> actually put their runloop on thread 0.  It is easy enough to start the JVM
>> on thread 0 but that prevents the changing of the stack size, at least this
>> is true on linux/solaris.
>>
>
> That is true. When we do -XstartOnFirstThread for the SWT, it cannot change
> the stack size of thread 0, but it is a hard requirement of Mac OS X that
> events are pumped from thread 0.
>
>  Is it good enough to just have the JVM start on the first thread and then
>> lose the ability to change the JVM's stack size?
>>
>
> By design, it is simply the way it must be.
>

I have some patches to implement this.  There are number of ways to do this
and I am sure my first option will not meet everyone's needs.

I will send the patch in a different mail.  Until we resolve the int32_t vs
intptr_t I will not be able to build the latest repo on OS X.  So hopefully
the patches will still be valid.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20081202/0020ddbf/attachment.html 


More information about the bsd-port-dev mailing list