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

Dtest class instrumentor functionality is not thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.7, 4.0.0
    • 3.0.6
    • Contrib
    • None

      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

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: