Review request for JDK-8062308

A. Sundararajan sundararajan.athijegannathan at
Thu Nov 6 13:48:10 UTC 2014


Please appropriate noreg- label to the bug - especially if you are 
thinking of backporting this to jdk8u in future.


On Thursday 06 November 2014 07:11 PM, Attila Szegedi wrote:
> Please review JDK-8062308 at <> for <>
> The gist of the issue is that we must maintain GlobalConstants objects per Context, and not as a single systemwide static in Global. Furthermore, as soon as the Context creates its second Global, we must disable the constant linking forever in that Context. Constant linking creates an intimate coupling between a Global and the compiled code, and is thus not compatible with multi-Global Contexts.
> I have also reduced the synchronization burden in GlobalConstants somewhat (only synchronizing when state needs to be accessed), and reduced the need to even access GlobalConstants from ScriptObject when it's clear that the script object in question is not a Global.
> Thanks,
>    Attila.

More information about the nashorn-dev mailing list