[infinispan-issues] [JBoss JIRA] (ISPN-10955) Reduce Primitive To Object Conversion - RequestRepository.addResponse(long, Address, Response)

Diego Lovison (Jira) issues at jboss.org
Thu Nov 14 07:45:00 EST 2019


Diego Lovison created ISPN-10955:
------------------------------------

             Summary: 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


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.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list