5452N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 5452N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5452N/A * This code is free software; you can redistribute it and/or modify it 5452N/A * under the terms of the GNU General Public License version 2 only, as 5452N/A * published by the Free Software Foundation. Oracle designates this 5452N/A * particular file as subject to the "Classpath" exception as provided 5452N/A * by Oracle in the LICENSE file that accompanied this code. 5452N/A * This code is distributed in the hope that it will be useful, but WITHOUT 5452N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5452N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5452N/A * version 2 for more details (a copy is included in the LICENSE file that 5452N/A * You should have received a copy of the GNU General Public License version 5452N/A * 2 along with this work; if not, write to the Free Software Foundation, 5452N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5452N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5452N/A * or visit www.oracle.com if you need additional information or have any 5452N/A * @summary unit tests for method handles which permute their arguments 5452N/A // mostly call testWMTCallee, but sometimes call its void-returning variant 5452N/A // mostly call exactInvoker.bindTo(testWMTCallee), but sometimes call its void-returning variant 5452N/A // mostly call exactInvoker.fold(constant(testWMTCallee)), but sometimes call its void-returning variant 5452N/A // make it conformable to any type: 5452N/A // FIXME: should not have to retype callee 5452N/A // FIXME: should not have to retype this 5452N/A // Using the exact type for this causes endless deopt due to 5452N/A // 'non_cached_result' in SystemDictionary::find_method_handle_invoke. 5452N/A // The problem is that the compiler thread needs to access a cached 5452N/A // invoke method, but invoke methods are not cached if one of the 5452N/A // component types is not on the BCP. 5452N/A //VERBOSE: System.out.println("reps="+reps+" catches="+catches); 5452N/A //VERBOSE: System.out.println("mh="+mh+" mh1="+mh1);