Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356823

Some nsk/jdi tests can fetch ThreadReference from static array field in the debuggee

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • core-svc

      In order to more easily support tests running without using the debug agent option includevirtualthreads=y (see JDK-8353955), an effort was first made to first remove the tests' dependency on includevirtualthreads=y by finding some other means of fetching the debuggee thread other than using vm.allThreads() and matching by thread name. One technique used was to fetch from a static field in the debuggee (see related CRs). This was done whenever possible, except when the threads were stored in an array since this was a bit trickier to do and was low priority, so doing so was saved for this CR. The following tests should all be able to fetch threads from a static array, and once done, do not need to be run with the -includevirtualthreads test option.

      vmTestbase/nsk/jdi/ClassType/invokeMethod/invokemethod011/TestDescription.java
       vmTestbase/nsk/jdi/ClassType/invokeMethod/invokemethod012/TestDescription.java
       vmTestbase/nsk/jdi/ClassType/invokeMethod/invokemethod013/TestDescription.java
       vmTestbase/nsk/jdi/Event/request/request001/TestDescription.java \
       vmTestbase/nsk/jdi/EventIterator/nextEvent/nextevent001/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/createStepRequest/crstepreq005/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/createStepRequest/crstepreq006/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/createStepRequest/crstepreq007/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/createStepRequest/crstepreq008/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/createStepRequest/crstepreq009/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/createStepRequest/crstepreq010/TestDescription.java
       vmTestbase/nsk/jdi/EventRequestManager/stepRequests/stepreq001/TestDescription.java
       vmTestbase/nsk/jdi/LocatableEvent/thread/thread001/TestDescription.java
       vmTestbase/nsk/jdi/ObjectReference/invokeMethod/invokemethod010/TestDescription.java
       vmTestbase/nsk/jdi/ObjectReference/invokeMethod/invokemethod011/TestDescription.java
       vmTestbase/nsk/jdi/ObjectReference/invokeMethod/invokemethod012/TestDescription.java
       vmTestbase/nsk/jdi/ObjectReference/invokeMethod/invokemethod013/TestDescription.java
       vmTestbase/nsk/jdi/ObjectReference/waitingThreads/waitingthreads002/TestDescription.java

            cjplummer Chris Plummer
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: