mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8148214: Slow object allocation due to multiple synchronization
Reviewed-by: attila, mhaupt
This commit is contained in:
parent
8521982b8d
commit
a6932e5352
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ public class ScriptFunction extends ScriptObject {
|
||||||
* @param prototype actual prototype object
|
* @param prototype actual prototype object
|
||||||
* @return property map
|
* @return property map
|
||||||
*/
|
*/
|
||||||
private synchronized PropertyMap getAllocatorMap(final ScriptObject prototype) {
|
private PropertyMap getAllocatorMap(final ScriptObject prototype) {
|
||||||
if (allocatorMap == null || allocatorMap.isInvalidSharedMapFor(prototype)) {
|
if (allocatorMap == null || allocatorMap.isInvalidSharedMapFor(prototype)) {
|
||||||
// The prototype map has changed since this function was last used as constructor.
|
// The prototype map has changed since this function was last used as constructor.
|
||||||
// Get a new allocator map.
|
// Get a new allocator map.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue