< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/share/jpda/DebugeeBinder.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 338,21 ***
          }
  
          String jdwpArgs = "-Xrunjdwp:"
                          + "server=" + server
                          + ",transport=" + argumentHandler.getTransportName()
!                         + ",address=" + transportAddress;
  
          if (! argumentHandler.isDefaultJVMDIStrictMode()) {
              if (argumentHandler.isJVMDIStrictMode())
                  jdwpArgs += ",strict=y";
              else
                  jdwpArgs += ",strict=n";
          }
  
          args.add(jdwpArgs);
  
          if (classToExecute != null) {
              StringTokenizer st = new StringTokenizer(classToExecute);
  
              while (st.hasMoreTokens()) {
                  args.add(st.nextToken());
--- 338,28 ---
          }
  
          String jdwpArgs = "-Xrunjdwp:"
                          + "server=" + server
                          + ",transport=" + argumentHandler.getTransportName()
!                         + ",address=" + transportAddress
+                         + ",enumeratevthreads=y"
+                         + ",notifyvthreads=y";
  
          if (! argumentHandler.isDefaultJVMDIStrictMode()) {
              if (argumentHandler.isJVMDIStrictMode())
                  jdwpArgs += ",strict=y";
              else
                  jdwpArgs += ",strict=n";
          }
  
          args.add(jdwpArgs);
  
+         if(System.getProperty("main.wrapper") != null) {
+             args.add(MainWrapper.class.getName());
+             args.add(System.getProperty("main.wrapper"));
+         }
+ 
          if (classToExecute != null) {
              StringTokenizer st = new StringTokenizer(classToExecute);
  
              while (st.hasMoreTokens()) {
                  args.add(st.nextToken());
< prev index next >