提交 d64c9a94 编写于 作者: L lana

Merge

# #
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -207,6 +207,8 @@ FULL_JRE_RTJAR_INCLUDE_PACKAGES := \ ...@@ -207,6 +207,8 @@ FULL_JRE_RTJAR_INCLUDE_PACKAGES := \
javax/xml/bind \ javax/xml/bind \
javax/xml/soap \ javax/xml/soap \
javax/xml/ws \ javax/xml/ws \
jdk/internal/instrumentation \
jdk/management/resource \
org/omg \ org/omg \
sun/applet \ sun/applet \
sun/audio \ sun/audio \
......
...@@ -66,9 +66,9 @@ public class TestProviderLeak { ...@@ -66,9 +66,9 @@ public class TestProviderLeak {
megaByte = new byte [MB]; megaByte = new byte [MB];
data.add(megaByte); data.add(megaByte);
} catch (OutOfMemoryError e) { } catch (OutOfMemoryError e) {
megaByte = null; // Free memory ASAP
System.out.println("OOME is thrown when allocating " System.out.println("OOME is thrown when allocating "
+ data.size() + "MB memory."); + data.size() + "MB memory.");
megaByte = null;
for (int j = 0; j < RESERVATION && !data.isEmpty(); j++) { for (int j = 0; j < RESERVATION && !data.isEmpty(); j++) {
data.removeLast(); data.removeLast();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册