Re: Is there a way to reference the engine from a linker?

2018-03-15 Thread Sundararajan Athijegannathan
Hi, Dynalink and its pluggable linkers are independent of Nashorn. If you want to access the current engine, you've to arrange to pass it. Thanks, -Sundar On 16/03/18, 12:32 AM, Paulo Lopes wrote: Hi, I'm writing a guarded linker to allow custom casting from JSObject to Vertx custom types.

Is there a way to reference the engine from a linker?

2018-03-15 Thread Paulo Lopes
Hi, I'm writing a guarded linker to allow custom casting from JSObject to Vertx custom types. So far so good, the basic tests seem to work but I think I'm writing too much boiler plate code as I need in many times to have an intermediate conversion from JSObject to Map or List. So I know that in

Re: RFR: 8199443: Nashorn multithread bottleneck with "use strict"

2018-03-15 Thread Jim Laskey
+1 > On Mar 15, 2018, at 10:30 AM, Hannes Wallnöfer > wrote: > > Please review: > > Bug: https://bugs.openjdk.java.net/browse/JDK-8199443 > Webrev: http://cr.openjdk.java.net/~hannesw/8199443/webrev/ > > If we make sure the property maps for strict functions

RFR: 8199443: Nashorn multithread bottleneck with "use strict"

2018-03-15 Thread Hannes Wallnöfer
Please review: Bug: https://bugs.openjdk.java.net/browse/JDK-8199443 Webrev: http://cr.openjdk.java.net/~hannesw/8199443/webrev/ If we make sure the property maps for strict functions and arguments are set up correctly (they weren’t before) we can skip setting the property in