You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Brandon Sloane (Jira)" <ji...@apache.org> on 2019/12/18 21:37:00 UTC

[jira] [Created] (DAFFODIL-2257) Check for unexpected instances of boxing

Brandon Sloane created DAFFODIL-2257:
----------------------------------------

             Summary: Check for unexpected instances of boxing
                 Key: DAFFODIL-2257
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2257
             Project: Daffodil
          Issue Type: Improvement
          Components: Back End, Clean Ups
    Affects Versions: 2.5.0
            Reporter: Brandon Sloane


We use the AnyVal types of Maybe (and specialized MaybeFoo types) and DataValue to avoid the need to box objects. However, there are times when these get boxed unexpectedly. We should look through and make sure non of this boxing happens at a time when we care if it gets boxed or not.

To check, we can dissasemble the compiled code:

javap -c -l `find . -name *.class | grep scala-2.12` > src.bytecode

then search the resulting assembly for strings along the lines of DataValue."<init>", which would indicate boxing. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)