Reduce memory consumption caused by Method.getParameterTypes()

Description

Hey,

As of Java 8 there is the possibilty to call Method.getParameterCount(), which is a much more efficient variant in case just the parameter count is needed. Method.getParameterTypes() clones the underlying parameters and therefore creates unnecessary pressure on the heap in such cases.

I revised all places to use the new method.

Cheers,
Christoph

Activity

Show:

Former userSeptember 27, 2016 at 8:49 PM

Fixed in master. hibernate-core in 5.1 and 5.0 require 1.6 source compatibility, so this could not be applied to those branches.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created September 27, 2016 at 7:01 AM
Updated September 30, 2016 at 7:46 AM
Resolved September 27, 2016 at 8:49 PM

Flag notifications