This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala-library 2.8 depends on sun.misc ?!

3 replies
hseeberger
Joined: 2008-12-27,
User offline. Last seen 1 year 25 weeks ago.
Hi,
It looks like some classes in scala.concurrent.forkjoin depend on sun.misc.*Does that mean that Scala 2.8 will not run on a IBM VM?

Best regards,

Heiko Seeberger

My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net
ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 3 days ago.
Re: scala-library 2.8 depends on sun.misc ?!

Hi Heiko,

On Tue, 2009-12-15 at 12:57 +0100, Heiko Seeberger wrote:
> It looks like some classes in scala.concurrent.forkjoin depend on
> sun.misc.*
> Does that mean that Scala 2.8 will not run on a IBM VM?

This has been explained in detail in the JVM5 vs JVM6 thread. The code
checks for the JVM and only uses sun.misc.* if available.

Best,
Ismael

Adriaan Moors
Joined: 2009-04-03,
User offline. Last seen 42 years 45 weeks ago.
Re: scala-library 2.8 depends on sun.misc ?!
it will run on 1.5 and IBM -- we detect dynamically on which VM we're running and "fallback" as necessary
adriaan

On Tue, Dec 15, 2009 at 12:57 PM, Heiko Seeberger <heiko.seeberger@googlemail.com> wrote:
Hi,
It looks like some classes in scala.concurrent.forkjoin depend on sun.misc.*Does that mean that Scala 2.8 will not run on a IBM VM?

Best regards,

Heiko Seeberger

My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information.

Erik Engbrecht
Joined: 2008-12-19,
User offline. Last seen 3 years 18 weeks ago.
Re: scala-library 2.8 depends on sun.misc ?!
I believe if means that Scala will not compile against an IBM VM.  Last time I looked there was a runtime check to detect an IBM VM, and if it detected one it would use a normal JDK5 Executor rather than the fork join one.
I think there's an effort to separate out the dependency into another module, because the fork join schedule also requires Java 6.

On Tue, Dec 15, 2009 at 6:57 AM, Heiko Seeberger <heiko.seeberger@googlemail.com> wrote:
Hi,
It looks like some classes in scala.concurrent.forkjoin depend on sun.misc.*Does that mean that Scala 2.8 will not run on a IBM VM?

Best regards,

Heiko Seeberger

My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net



--
http://erikengbrecht.blogspot.com/

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland