Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jvmti/AddCapabilities/addcaps003/TestDescription.java
40955 views
/*1* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/222324/*25* @test26*27* @summary converted from VM Testbase nsk/jvmti/AddCapabilities/addcaps003.28* VM Testbase keywords: [quick, jpda, jvmti, noras, vm6]29* VM Testbase readme:30* DESCRIPTION31* Bug ID: 631680732* This JVMTI test exercises JVMTI GetCapabilities() function with the following flags:33* -XX:+PrintInterpreter -XX:+TaggedStackInterpreter34* The bug's evaluation field says:35* "The interpreter allocates a fixed size buffer in order to generate code36* for itself. Product code can fail in the interpreter with the37* guarantee("not enough space for interpreter generation");38* when this code space is not sufficient. New code has been added to the39* interpreter for TaggedStackInterpreter and for JVMTI which can increase the40* size needed by the interpreter code buffer. The interpreter code size is41* hardcoded and it's not typical for people to change the size when one42* adds new code to the interpreter, so it can run out. Also the intepreter43* code size in NOT_PRODUCT is multiplied by 4 so the code size doesn't typically44* run out in debug mode, which is the mode we test."45* COMMENTS46*47* @library /vmTestbase48* /test/lib49* @run main/othervm/native50* -XX:+UnlockDiagnosticVMOptions51* -XX:+PrintInterpreter52* -XX:+IgnoreUnrecognizedVMOptions53* -XX:+TaggedStackInterpreter54* -agentlib:addcaps003=-waittime=555* nsk.jvmti.AddCapabilities.addcaps00356*/57585960