]
Diego Lovison commented on ISPN-10955:
--------------------------------------
Reduce Primitive To Object Conversion -
RequestRepository.addResponse(long, Address, Response)
----------------------------------------------------------------------------------------------
Key: ISPN-10955
URL:
https://issues.jboss.org/browse/ISPN-10955
Project: Infinispan
Issue Type: Enhancement
Affects Versions: 10.0.1.Final
Reporter: Diego Lovison
Assignee: Diego Lovison
Priority: Major
1 % of the total allocation (214 MiB) is caused by conversion from primitive types to
object types.
The most common object type that primitives are converted into is
'java.lang.Long', which causes 214 MiB to be allocated. The most common call site
is 'org.infinispan.remoting.transport.impl.RequestRepository.addResponse(long,
Address, Response):46'.
Conversion from primitives to the corresponding object types can either be done
explicitly, or be caused by autoboxing. If a considerable amount of the total allocation
is caused by such conversions, consider changing the application source code to avoid this
behavior. Look at the allocation stack traces to see which parts of the code to change.
This rule finds the calls to the valueOf method for any of the eight object types that
have primitive counterparts.