Thread-topic: JVM crash when launching threads with custom stack size
Title: RE: JVM crash when launching threads with custom stack size
I reported this issue under Bug ID# 6256466. Thanks for reporting so quickly guys!
Dennis
-----Oorspronkelijk bericht-----
Van: Mike Swingler [mailto:email@hidden]
Verzonden: di 30-9-2008 2:09
Aan: Dennis Bijlsma | Adjustables
CC: email@hidden
Onderwerp: Re: JVM crash when launching threads with custom stack size
On Sep 29, 2008, at 2:15 AM, Dennis Bijlsma | Adjustables wrote:
> Try running the following code using Java 6 on Mac OS X:
>
> --------------------
> System.out.println("A");
>
> new Thread(){public void run(){ System.out.println("1"); }}.start();
>
> System.out.println("B");
>
> Runnable r = new Runnable(){public void run()
> { System.out.println("2"); }};
> int stackSize = 32*1024;
> new Thread(null, r, "name", stackSize).start();
>
> System.out.println("C");
> --------------------
>
> this will output the following:
>
> --------------------
> A
> B
> 1
> C
> Invalid memory access of location fffffff8 rip=010f374c
> --------------------
>
> The documentation of creating new threads with custom stack sizes
> does state that the behavior will be highly operating system-
> dependant, but I think crashing the entire JVM is a bit extreme.
> Apart from this the same code runs perfectly fine on Windows and
> Linux.
>
> The original forum thread discussing this problem is here: http://www.javagaming.org/index.php/topic,19258.0.html
>
Thanks,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden