Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GenerateEvents/genevents001/TestDescription.java
40951 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/GenerateEvents/genevents001.
29
* VM Testbase keywords: [quick, jpda, jvmti, noras]
30
* VM Testbase readme:
31
* DESCRIPTION
32
* This JVMTI test exercises JVMTI thread function GenerateEvents().
33
* This test checks that GenerateEvents() returns no error code
34
* and generates missed COMPILED_METHOD_LOAD and DYNAMIC_CODE_GENERATED
35
* events and does not generate missed COMPILED_METHOD_UNLOAD events.
36
* The test intensively calls tested method in debuggee code
37
* to provoke its compilation. Then agent enables tested events,
38
* calls GenerateEvents() and checks if missed events are received.
39
* It is not guaranteed that tested method will be compiled and
40
* any dynamic code will be generated, so if no COMPILED_METHOD_LOAD
41
* and DYNAMIC_CODE_GENERATED are received then the test just
42
* prints warning message and passes anyway.
43
* If COMPILED_METHOD_UNLOAD events are received which are not listed
44
* as supported events for GenerateEvents(), then the test fails.
45
* COMMENTS
46
* Fixed according to 4960375 bug.
47
* The test updated to match new JVMTI spec 0.2.94.
48
*
49
* @library /vmTestbase
50
* /test/lib
51
* @run main/othervm/native
52
* -agentlib:genevents001=-waittime=5
53
* nsk.jvmti.GenerateEvents.genevents001
54
*/
55
56
57