Review request for JDK-8035948 - Redesign property listeners for shared classes
sundararajan.athijegannathan at oracle.com
Thu Feb 27 19:18:06 PST 2014
Copyright year in this file has to be 2014.
On Thursday 27 February 2014 10:52 PM, Hannes Wallnoefer wrote:
> Please review JDK-8035948 - Redesign property listeners for shared
> This prepares property maps and property listeners to work better with
> classes that are reused between JS environments. The central ideas are:
> - Reuse property maps between globals in order to minimize polymorphism.
> - Use SoftReferences for property map history to avoid memory leaks
> - Redesign property listeners to be attatched to property maps only
> since ScriptObjects are specific to one JS environment.
> - Reduce number of property listeners by only creating them when
> needed (when a callsite accesses an inherited property).
> - Reduce number of prototype history lookups in property maps by
> using a unique combination of prototype/property maps from the start.
> Actual class sharing functionality is coming in a later webrev. Let me
> know if you have any questions about this.
More information about the nashorn-dev