Thank you for posting this.

Does the fact that our scoped objects are thread safe and that our scripts 
contain only function definitions without global variables makes any 
difference? Should I better create a separate scope on each invocation, 
possibly based on a scope prototype instance?

Unfortunately we are using Weblogic's version, we can't apply your patch.

Thanks,
Aleks

-----Original Message-----
From: dev-tech-js-engine-rhino-bounces+alikic=loyalty....@lists.mozilla.org 
[mailto:dev-tech-js-engine-rhino-bounces+alikic=loyalty....@lists.mozilla.org] 
On Behalf Of Tom Palkot
Sent: Friday, March 12, 2010 10:56 AM
To: [email protected]
Subject: RE: Scope and Multithreading

I had introduced a topic earlier pointing out that
org.mozilla.javascript.ClassCache changes in Rhino 1.7 to use HashMap
cause thread safety problems.

It looks from here like this wasn't ever changed.
http://mxr.mozilla.org/mozilla/source/js/rhino/src/org/mozilla/javascrip
t/ClassCache.java

Since raising the issue, we went through many rounds of load testing,
reproducing the problem many times.  We patched this by changing the
HashMap class level variables to be ConcurrentHashMap.  After many
rounds of load testing we have never been able to reproduce the problem
with the patch applied.

Did that change ever get made?  What should I do to help the process of
getting that change into source?

Thanks,
Tom

-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+tpalkot=motive....@lists.mozilla.org
[mailto:[email protected]
a.org] On Behalf Of David Parks
Sent: Thursday, March 11, 2010 6:42 PM
To: [email protected]
Subject: RE: Scope and Multithreading

Yes, there should not be a problem with this, as a scope
is essentially just a container. Multiple scripts can be executed under
one
scope simultaneously as well. All presuming, as you stated, that the
objects
are immutable or you have made them thread safe yourself (Rhino does not
make
any effort to make the access to your objects thread safe, that will be
your
job).
 
David
 
 
-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+davidparks21=yahoo....@lists.mozilla.or
g
[mailto:[email protected]
zilla.org]
On Behalf Of Aleksandar Likic
Sent: Thursday, March 11, 2010 7:02 AM
To: Rhino List JS User
Subject: Scope and Multithreading
 
Hi,
 
Does anyone know if the same scope (Scriptable) instance
can be used by multiple threads at the same time, provided the
following:
 
- All objects put into the scope are thread safe
- All scripts contain only function definitions which
don't define any new global variables
 
I am using Rhino that comes with Weblogic 10.0.0.1
(1.6R4?)
 
Thanks,
Aleksandar Likic
 
The information contained in this e-mail message and any
attachments may be privileged and confidential. If the reader of this
message
is not the intended recipient or an agent responsible for delivering it
to the
intended recipient, you are hereby notified that any review,
dissemination,
distribution or copying of this communication is strictly prohibited. If
you
have received this communication in error, please notify the sender
immediately
by replying to this e-mail and delete the message and any attachments
from your
computer.
 
 
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

The information contained in this e-mail message and any 
attachments may be privileged and confidential. If the reader of 
this message is not the intended recipient or an agent 
responsible for delivering it to the intended recipient, you are 
hereby notified that any review, dissemination, distribution or 
copying of this communication is strictly prohibited. If you have 
received this communication in error, please notify the sender 
immediately by replying to this e-mail and delete the message and 
any attachments from your computer.


_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to