-
Enhancement
-
Resolution: Fixed
-
P3
-
8
-
None
-
b04
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045077 | 8u25 | Hannes Wallnoefer | P3 | Resolved | Fixed | b01 |
JDK-8037994 | 8u20 | Hannes Wallnoefer | P3 | Resolved | Fixed | b09 |
JDK-8052477 | emb-8u26 | Hannes Wallnoefer | P3 | Resolved | Fixed | b18 |
There are two approaches of making property listeners (used to invalidate callsites for inherited properties) work with shared classes. One is to remove them alltogether, replacing switchpoints with deep property guard that check the maps of all involved prototypes on each invocation, and the other is to move listeners from the ScriptObjects belonging to just one global to the property maps that are potentially shared between globals.
At the same time there are areas where the current listener system can be optimized. Currently much more property listeners are created/registered than necessary (over 200.000 in one invocation of the Octane run.js script). Another detail that is currently less then optimal and won't work in a multi-global world is property map prototype history. We currently look up prototype history over 20 million times in one Octane run.js even though we know the object was never used with the original prototype and map.
At the same time there are areas where the current listener system can be optimized. Currently much more property listeners are created/registered than necessary (over 200.000 in one invocation of the Octane run.js script). Another detail that is currently less then optimal and won't work in a multi-global world is property map prototype history. We currently look up prototype history over 20 million times in one Octane run.js even though we know the object was never used with the original prototype and map.
- backported by
-
JDK-8037994 Redesign property listeners for shared classes
-
- Resolved
-
-
JDK-8045077 Redesign property listeners for shared classes
-
- Resolved
-
-
JDK-8052477 Redesign property listeners for shared classes
-
- Resolved
-
- relates to
-
JDK-8021350 Share script classes between threads/globals within context
-
- Resolved
-