Mercurial > hg > truffle
annotate test/runtime/PerfMemDestroy/PerfMemDestroy.java @ 14300:d5b8799dfbd7
8032827: NMT: missing virtual memory tagging in os::workaround_expand_exec_shield_cs_limit()
Summary: Fixed missing virtual memory type tagging in os::workaround_expand_exec_shield_cs_limit() function
Reviewed-by: hseigel, coleenp
author | zgu |
---|---|
date | Tue, 28 Jan 2014 08:55:00 -0500 |
parents | e89b54bf4e51 |
children |
rev | line source |
---|---|
14187
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
1 /* |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
4 * |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
8 * |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
13 * accompanied this code). |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
14 * |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
18 * |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
21 * questions. |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
22 */ |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
23 |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
24 /* |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
25 * @test |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
26 * @bug 8030955 |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
27 * @summary Allow multiple calls to PerfMemory::destroy() without asserting. |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
28 * @library /testlibrary |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
29 * @run main PerfMemDestroy |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
30 */ |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
31 |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
32 import java.io.File; |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
33 import java.util.Map; |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
34 import com.oracle.java.testlibrary.*; |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
35 |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
36 public class PerfMemDestroy { |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
37 public static void main(String args[]) throws Throwable { |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
38 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PerfAllowAtExitRegistration", "-version"); |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
39 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
40 output.shouldHaveExitValue(0); |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
41 } |
e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
hseigel
parents:
diff
changeset
|
42 } |