Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18066

ByteBufferMarshalledValue generates duplicate buffers during a single marshalling operation

XMLWordPrintable

      Our ProtoStream marshaller uses a 2 phase approach:
      1. Determine the size of the requisite byte buffer
      1a. Allocate a byte buffer using the calculated size
      2. Marshal the object into the allocated byte buffer

      Generally, this works well. However, ByteBufferMarshalledValue is a special case. Currently, to determine the buffer size for this object (step 1), the buffer itself needs to be created. A redundant buffer is then created during step 2.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: