Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-328

Dtest class instrumentor functionality is not thread safe

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.7, 4.0.0
    • Component/s: Contrib
    • Labels:
      None

      Description

      I've hit trouble of multi-thread usage of dtest library. If used InstrumentedClass and check instances or number of calls and there is a higher load of traces to be written and checked later it can happen that some of the traces is not written to map as it's not concurrent ready. Similar thing could happen in helper on the server side.

      See
      https://github.com/bytemanproject/byteman/blob/7863aa2c8e28c1568276422259ff490f2957b3ee/contrib/dtest/src/org/jboss/byteman/contrib/dtest/InstrumentedClass.java#L44

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ochaloup Ondra Chaloupka
                  Reporter:
                  ochaloup Ondra Chaloupka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: