Skip to main content

Isolates in JavaSE

3 replies [Last post]
cowwoc
Offline
Joined: 2003-08-24
Points: 0

Hi,

I would love to have your feedback in http://www.javalobby.org/java/forums/t105978.html with respect to Squawk. Is it possible that your work could be reused to implement Isolates in JavaSE?

Thank you,
Gili

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eric_arseneau
Offline
Joined: 2004-07-15
Points: 0

It could theoretically be done, but its a lot harder for JSE than it is in Squawk. In JSE you have to deal with JIT and native calls. In Squawk the stack and all it needs are all standard Java objects, and therefor serializing the state of an Isolate is pretty easy.

There is a re-ification process in HotSpot that MAY be able to resolve this, but I am not sure how far it can go in translating native stack into a java stack.

Hope this helps,

PS: Will go look at thread as well.

cowwoc
Offline
Joined: 2003-08-24
Points: 0

Hi Eric,

I don't think anyone expects Isolates to work for native calls (though if they did obviously that would be great).

Thanks for your reply,
Gili

eric_arseneau
Offline
Joined: 2004-07-15
Points: 0

Agreed that native calls should not be expected. I was more thinking of the JIT process. This creates native code and tends to leverage the native stack of the platform.

In Squawk, its a lot easier as the "stack" for the interpreter is actual Java objects that can be referenced and serialized very easily. JITted frames are not normally so simple, and so serializing there state is not so simple.

That was what I was hinting at.

PS: I tried to put a comment on the blog you pointed out, but I got an error trying to add myself as a new member, the webpage came up with an exception.