8148214: Slow object allocation due to multiple synchronization

Reviewed-by: attila, mhaupt
This commit is contained in:
Hannes Wallnöfer 2016-01-26 13:46:00 +01:00
parent 8521982b8d
commit a6932e5352

View File

@ -553,7 +553,7 @@ public class ScriptFunction extends ScriptObject {
* @param prototype actual prototype object
* @return property map
*/
private synchronized PropertyMap getAllocatorMap(final ScriptObject prototype) {
private PropertyMap getAllocatorMap(final ScriptObject prototype) {
if (allocatorMap == null || allocatorMap.isInvalidSharedMapFor(prototype)) {
// The prototype map has changed since this function was last used as constructor.
// Get a new allocator map.