We're updating the issue view to help you get more done. 

Relax synchronized block in Loader#wrapResultSetIfEnabled

Description

Method

1 org.hibernate.loader.Loader#wrapResultSetIfEnabled

is completely synchronized and shows as a bottleneck in performance tests.

I am not sure if the synchronization is not needed anymore (at all), but from the look of it should be fairly straight forward to reduce the scope of the lock to a smaller code area.

The same synchronization is affecting also

1 org.hibernate.loader.collection.OneToManyLoader

(as it extends Loader, but this is also a bottleneck highlighted by the same benchmark)

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major