Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jvmti/AddCapabilities/addcaps003/TestDescription.java
40955 views
1
/*
2
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
25
/*
26
* @test
27
*
28
* @summary converted from VM Testbase nsk/jvmti/AddCapabilities/addcaps003.
29
* VM Testbase keywords: [quick, jpda, jvmti, noras, vm6]
30
* VM Testbase readme:
31
* DESCRIPTION
32
* Bug ID: 6316807
33
* This JVMTI test exercises JVMTI GetCapabilities() function with the following flags:
34
* -XX:+PrintInterpreter -XX:+TaggedStackInterpreter
35
* The bug's evaluation field says:
36
* "The interpreter allocates a fixed size buffer in order to generate code
37
* for itself. Product code can fail in the interpreter with the
38
* guarantee("not enough space for interpreter generation");
39
* when this code space is not sufficient. New code has been added to the
40
* interpreter for TaggedStackInterpreter and for JVMTI which can increase the
41
* size needed by the interpreter code buffer. The interpreter code size is
42
* hardcoded and it's not typical for people to change the size when one
43
* adds new code to the interpreter, so it can run out. Also the intepreter
44
* code size in NOT_PRODUCT is multiplied by 4 so the code size doesn't typically
45
* run out in debug mode, which is the mode we test."
46
* COMMENTS
47
*
48
* @library /vmTestbase
49
* /test/lib
50
* @run main/othervm/native
51
* -XX:+UnlockDiagnosticVMOptions
52
* -XX:+PrintInterpreter
53
* -XX:+IgnoreUnrecognizedVMOptions
54
* -XX:+TaggedStackInterpreter
55
* -agentlib:addcaps003=-waittime=5
56
* nsk.jvmti.AddCapabilities.addcaps003
57
*/
58
59
60