< prev index next >

test/jdk/com/sun/jdi/OomDebugTest.java

Print this page




  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 /**
  26  *  @test
  27  *  @bug 8153711
  28  *  @summary JDWP: Memory Leak (global references not deleted after invokeMethod).
  29  *
  30  *  @author Severin Gehwolf <sgehwolf@redhat.com>
  31  *

  32  *  @library ..
  33  *  @run build TestScaffold VMConnection TargetListener TargetAdapter
  34  *  @run compile -g OomDebugTest.java
  35  *  @run main OomDebugTest OomDebugTestTarget test1
  36  *  @run main OomDebugTest OomDebugTestTarget test2
  37  *  @run main OomDebugTest OomDebugTestTarget test3
  38  *  @run main OomDebugTest OomDebugTestTarget test4
  39  *  @run main OomDebugTest OomDebugTestTarget test5
  40  */
  41 import java.io.File;
  42 import java.io.FileInputStream;
  43 import java.io.FileNotFoundException;
  44 import java.io.FileOutputStream;
  45 import java.io.IOException;
  46 import java.util.ArrayList;
  47 import java.util.Arrays;
  48 import java.util.Collections;
  49 import java.util.HashSet;
  50 import java.util.List;
  51 import java.util.Properties;




  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 /**
  26  *  @test
  27  *  @bug 8153711
  28  *  @summary JDWP: Memory Leak (global references not deleted after invokeMethod).
  29  *
  30  *  @author Severin Gehwolf <sgehwolf@redhat.com>
  31  *
  32  *  @requires vm.gc != "Z"
  33  *  @library ..
  34  *  @run build TestScaffold VMConnection TargetListener TargetAdapter
  35  *  @run compile -g OomDebugTest.java
  36  *  @run main OomDebugTest OomDebugTestTarget test1
  37  *  @run main OomDebugTest OomDebugTestTarget test2
  38  *  @run main OomDebugTest OomDebugTestTarget test3
  39  *  @run main OomDebugTest OomDebugTestTarget test4
  40  *  @run main OomDebugTest OomDebugTestTarget test5
  41  */
  42 import java.io.File;
  43 import java.io.FileInputStream;
  44 import java.io.FileNotFoundException;
  45 import java.io.FileOutputStream;
  46 import java.io.IOException;
  47 import java.util.ArrayList;
  48 import java.util.Arrays;
  49 import java.util.Collections;
  50 import java.util.HashSet;
  51 import java.util.List;
  52 import java.util.Properties;


< prev index next >