10
|
1 |
/*
|
5520
|
2 |
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
|
10
|
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 |
*
|
5520
|
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.
|
10
|
22 |
*/
|
|
23 |
|
|
24 |
/*
|
|
25 |
* @test
|
|
26 |
* @bug 4309152
|
|
27 |
* @summary Compiler silently generates bytecode that exceeds VM limits
|
|
28 |
* @author gafter
|
|
29 |
*
|
|
30 |
* @compile NumArgs2.java
|
|
31 |
*/
|
|
32 |
|
|
33 |
class NumArgs2 {
|
|
34 |
void f(
|
|
35 |
// This this,
|
|
36 |
int x2,
|
|
37 |
int x3,
|
|
38 |
int x4,
|
|
39 |
int x5,
|
|
40 |
int x6,
|
|
41 |
int x7,
|
|
42 |
int x8,
|
|
43 |
int x9,
|
|
44 |
int x10,
|
|
45 |
int x11,
|
|
46 |
int x12,
|
|
47 |
int x13,
|
|
48 |
int x14,
|
|
49 |
int x15,
|
|
50 |
int x16,
|
|
51 |
int x17,
|
|
52 |
int x18,
|
|
53 |
int x19,
|
|
54 |
int x20,
|
|
55 |
int x21,
|
|
56 |
int x22,
|
|
57 |
int x23,
|
|
58 |
int x24,
|
|
59 |
int x25,
|
|
60 |
int x26,
|
|
61 |
int x27,
|
|
62 |
int x28,
|
|
63 |
int x29,
|
|
64 |
int x30,
|
|
65 |
int x31,
|
|
66 |
int x32,
|
|
67 |
int x33,
|
|
68 |
int x34,
|
|
69 |
int x35,
|
|
70 |
int x36,
|
|
71 |
int x37,
|
|
72 |
int x38,
|
|
73 |
int x39,
|
|
74 |
int x40,
|
|
75 |
int x41,
|
|
76 |
int x42,
|
|
77 |
int x43,
|
|
78 |
int x44,
|
|
79 |
int x45,
|
|
80 |
int x46,
|
|
81 |
int x47,
|
|
82 |
int x48,
|
|
83 |
int x49,
|
|
84 |
int x50,
|
|
85 |
int x51,
|
|
86 |
int x52,
|
|
87 |
int x53,
|
|
88 |
int x54,
|
|
89 |
int x55,
|
|
90 |
int x56,
|
|
91 |
int x57,
|
|
92 |
int x58,
|
|
93 |
int x59,
|
|
94 |
int x60,
|
|
95 |
int x61,
|
|
96 |
int x62,
|
|
97 |
int x63,
|
|
98 |
int x64,
|
|
99 |
int x65,
|
|
100 |
int x66,
|
|
101 |
int x67,
|
|
102 |
int x68,
|
|
103 |
int x69,
|
|
104 |
int x70,
|
|
105 |
int x71,
|
|
106 |
int x72,
|
|
107 |
int x73,
|
|
108 |
int x74,
|
|
109 |
int x75,
|
|
110 |
int x76,
|
|
111 |
int x77,
|
|
112 |
int x78,
|
|
113 |
int x79,
|
|
114 |
int x80,
|
|
115 |
int x81,
|
|
116 |
int x82,
|
|
117 |
int x83,
|
|
118 |
int x84,
|
|
119 |
int x85,
|
|
120 |
int x86,
|
|
121 |
int x87,
|
|
122 |
int x88,
|
|
123 |
int x89,
|
|
124 |
int x90,
|
|
125 |
int x91,
|
|
126 |
int x92,
|
|
127 |
int x93,
|
|
128 |
int x94,
|
|
129 |
int x95,
|
|
130 |
int x96,
|
|
131 |
int x97,
|
|
132 |
int x98,
|
|
133 |
int x99,
|
|
134 |
int x100,
|
|
135 |
int x101,
|
|
136 |
int x102,
|
|
137 |
int x103,
|
|
138 |
int x104,
|
|
139 |
int x105,
|
|
140 |
int x106,
|
|
141 |
int x107,
|
|
142 |
int x108,
|
|
143 |
int x109,
|
|
144 |
int x110,
|
|
145 |
int x111,
|
|
146 |
int x112,
|
|
147 |
int x113,
|
|
148 |
int x114,
|
|
149 |
int x115,
|
|
150 |
int x116,
|
|
151 |
int x117,
|
|
152 |
int x118,
|
|
153 |
int x119,
|
|
154 |
int x120,
|
|
155 |
int x121,
|
|
156 |
int x122,
|
|
157 |
int x123,
|
|
158 |
int x124,
|
|
159 |
int x125,
|
|
160 |
int x126,
|
|
161 |
int x127,
|
|
162 |
int x128,
|
|
163 |
int x129,
|
|
164 |
int x130,
|
|
165 |
int x131,
|
|
166 |
int x132,
|
|
167 |
int x133,
|
|
168 |
int x134,
|
|
169 |
int x135,
|
|
170 |
int x136,
|
|
171 |
int x137,
|
|
172 |
int x138,
|
|
173 |
int x139,
|
|
174 |
int x140,
|
|
175 |
int x141,
|
|
176 |
int x142,
|
|
177 |
int x143,
|
|
178 |
int x144,
|
|
179 |
int x145,
|
|
180 |
int x146,
|
|
181 |
int x147,
|
|
182 |
int x148,
|
|
183 |
int x149,
|
|
184 |
int x150,
|
|
185 |
int x151,
|
|
186 |
int x152,
|
|
187 |
int x153,
|
|
188 |
int x154,
|
|
189 |
int x155,
|
|
190 |
int x156,
|
|
191 |
int x157,
|
|
192 |
int x158,
|
|
193 |
int x159,
|
|
194 |
int x160,
|
|
195 |
int x161,
|
|
196 |
int x162,
|
|
197 |
int x163,
|
|
198 |
int x164,
|
|
199 |
int x165,
|
|
200 |
int x166,
|
|
201 |
int x167,
|
|
202 |
int x168,
|
|
203 |
int x169,
|
|
204 |
int x170,
|
|
205 |
int x171,
|
|
206 |
int x172,
|
|
207 |
int x173,
|
|
208 |
int x174,
|
|
209 |
int x175,
|
|
210 |
int x176,
|
|
211 |
int x177,
|
|
212 |
int x178,
|
|
213 |
int x179,
|
|
214 |
int x180,
|
|
215 |
int x181,
|
|
216 |
int x182,
|
|
217 |
int x183,
|
|
218 |
int x184,
|
|
219 |
int x185,
|
|
220 |
int x186,
|
|
221 |
int x187,
|
|
222 |
int x188,
|
|
223 |
int x189,
|
|
224 |
int x190,
|
|
225 |
int x191,
|
|
226 |
int x192,
|
|
227 |
int x193,
|
|
228 |
int x194,
|
|
229 |
int x195,
|
|
230 |
int x196,
|
|
231 |
int x197,
|
|
232 |
int x198,
|
|
233 |
int x199,
|
|
234 |
int x200,
|
|
235 |
int x201,
|
|
236 |
int x202,
|
|
237 |
int x203,
|
|
238 |
int x204,
|
|
239 |
int x205,
|
|
240 |
int x206,
|
|
241 |
int x207,
|
|
242 |
int x208,
|
|
243 |
int x209,
|
|
244 |
int x210,
|
|
245 |
int x211,
|
|
246 |
int x212,
|
|
247 |
int x213,
|
|
248 |
int x214,
|
|
249 |
int x215,
|
|
250 |
int x216,
|
|
251 |
int x217,
|
|
252 |
int x218,
|
|
253 |
int x219,
|
|
254 |
int x220,
|
|
255 |
int x221,
|
|
256 |
int x222,
|
|
257 |
int x223,
|
|
258 |
int x224,
|
|
259 |
int x225,
|
|
260 |
int x226,
|
|
261 |
int x227,
|
|
262 |
int x228,
|
|
263 |
int x229,
|
|
264 |
int x230,
|
|
265 |
int x231,
|
|
266 |
int x232,
|
|
267 |
int x233,
|
|
268 |
int x234,
|
|
269 |
int x235,
|
|
270 |
int x236,
|
|
271 |
int x237,
|
|
272 |
int x238,
|
|
273 |
int x239,
|
|
274 |
int x240,
|
|
275 |
int x241,
|
|
276 |
int x242,
|
|
277 |
int x243,
|
|
278 |
int x244,
|
|
279 |
int x245,
|
|
280 |
int x246,
|
|
281 |
int x247,
|
|
282 |
int x248,
|
|
283 |
int x249,
|
|
284 |
int x250,
|
|
285 |
int x251,
|
|
286 |
int x252,
|
|
287 |
int x253,
|
|
288 |
int x254,
|
|
289 |
int x255
|
|
290 |
) {}
|
|
291 |
|
|
292 |
static
|
|
293 |
void g(
|
|
294 |
int x1,
|
|
295 |
int x2,
|
|
296 |
int x3,
|
|
297 |
int x4,
|
|
298 |
int x5,
|
|
299 |
int x6,
|
|
300 |
int x7,
|
|
301 |
int x8,
|
|
302 |
int x9,
|
|
303 |
int x10,
|
|
304 |
int x11,
|
|
305 |
int x12,
|
|
306 |
int x13,
|
|
307 |
int x14,
|
|
308 |
int x15,
|
|
309 |
int x16,
|
|
310 |
int x17,
|
|
311 |
int x18,
|
|
312 |
int x19,
|
|
313 |
int x20,
|
|
314 |
int x21,
|
|
315 |
int x22,
|
|
316 |
int x23,
|
|
317 |
int x24,
|
|
318 |
int x25,
|
|
319 |
int x26,
|
|
320 |
int x27,
|
|
321 |
int x28,
|
|
322 |
int x29,
|
|
323 |
int x30,
|
|
324 |
int x31,
|
|
325 |
int x32,
|
|
326 |
int x33,
|
|
327 |
int x34,
|
|
328 |
int x35,
|
|
329 |
int x36,
|
|
330 |
int x37,
|
|
331 |
int x38,
|
|
332 |
int x39,
|
|
333 |
int x40,
|
|
334 |
int x41,
|
|
335 |
int x42,
|
|
336 |
int x43,
|
|
337 |
int x44,
|
|
338 |
int x45,
|
|
339 |
int x46,
|
|
340 |
int x47,
|
|
341 |
int x48,
|
|
342 |
int x49,
|
|
343 |
int x50,
|
|
344 |
int x51,
|
|
345 |
int x52,
|
|
346 |
int x53,
|
|
347 |
int x54,
|
|
348 |
int x55,
|
|
349 |
int x56,
|
|
350 |
int x57,
|
|
351 |
int x58,
|
|
352 |
int x59,
|
|
353 |
int x60,
|
|
354 |
int x61,
|
|
355 |
int x62,
|
|
356 |
int x63,
|
|
357 |
int x64,
|
|
358 |
int x65,
|
|
359 |
int x66,
|
|
360 |
int x67,
|
|
361 |
int x68,
|
|
362 |
int x69,
|
|
363 |
int x70,
|
|
364 |
int x71,
|
|
365 |
int x72,
|
|
366 |
int x73,
|
|
367 |
int x74,
|
|
368 |
int x75,
|
|
369 |
int x76,
|
|
370 |
int x77,
|
|
371 |
int x78,
|
|
372 |
int x79,
|
|
373 |
int x80,
|
|
374 |
int x81,
|
|
375 |
int x82,
|
|
376 |
int x83,
|
|
377 |
int x84,
|
|
378 |
int x85,
|
|
379 |
int x86,
|
|
380 |
int x87,
|
|
381 |
int x88,
|
|
382 |
int x89,
|
|
383 |
int x90,
|
|
384 |
int x91,
|
|
385 |
int x92,
|
|
386 |
int x93,
|
|
387 |
int x94,
|
|
388 |
int x95,
|
|
389 |
int x96,
|
|
390 |
int x97,
|
|
391 |
int x98,
|
|
392 |
int x99,
|
|
393 |
int x100,
|
|
394 |
int x101,
|
|
395 |
int x102,
|
|
396 |
int x103,
|
|
397 |
int x104,
|
|
398 |
int x105,
|
|
399 |
int x106,
|
|
400 |
int x107,
|
|
401 |
int x108,
|
|
402 |
int x109,
|
|
403 |
int x110,
|
|
404 |
int x111,
|
|
405 |
int x112,
|
|
406 |
int x113,
|
|
407 |
int x114,
|
|
408 |
int x115,
|
|
409 |
int x116,
|
|
410 |
int x117,
|
|
411 |
int x118,
|
|
412 |
int x119,
|
|
413 |
int x120,
|
|
414 |
int x121,
|
|
415 |
int x122,
|
|
416 |
int x123,
|
|
417 |
int x124,
|
|
418 |
int x125,
|
|
419 |
int x126,
|
|
420 |
int x127,
|
|
421 |
int x128,
|
|
422 |
int x129,
|
|
423 |
int x130,
|
|
424 |
int x131,
|
|
425 |
int x132,
|
|
426 |
int x133,
|
|
427 |
int x134,
|
|
428 |
int x135,
|
|
429 |
int x136,
|
|
430 |
int x137,
|
|
431 |
int x138,
|
|
432 |
int x139,
|
|
433 |
int x140,
|
|
434 |
int x141,
|
|
435 |
int x142,
|
|
436 |
int x143,
|
|
437 |
int x144,
|
|
438 |
int x145,
|
|
439 |
int x146,
|
|
440 |
int x147,
|
|
441 |
int x148,
|
|
442 |
int x149,
|
|
443 |
int x150,
|
|
444 |
int x151,
|
|
445 |
int x152,
|
|
446 |
int x153,
|
|
447 |
int x154,
|
|
448 |
int x155,
|
|
449 |
int x156,
|
|
450 |
int x157,
|
|
451 |
int x158,
|
|
452 |
int x159,
|
|
453 |
int x160,
|
|
454 |
int x161,
|
|
455 |
int x162,
|
|
456 |
int x163,
|
|
457 |
int x164,
|
|
458 |
int x165,
|
|
459 |
int x166,
|
|
460 |
int x167,
|
|
461 |
int x168,
|
|
462 |
int x169,
|
|
463 |
int x170,
|
|
464 |
int x171,
|
|
465 |
int x172,
|
|
466 |
int x173,
|
|
467 |
int x174,
|
|
468 |
int x175,
|
|
469 |
int x176,
|
|
470 |
int x177,
|
|
471 |
int x178,
|
|
472 |
int x179,
|
|
473 |
int x180,
|
|
474 |
int x181,
|
|
475 |
int x182,
|
|
476 |
int x183,
|
|
477 |
int x184,
|
|
478 |
int x185,
|
|
479 |
int x186,
|
|
480 |
int x187,
|
|
481 |
int x188,
|
|
482 |
int x189,
|
|
483 |
int x190,
|
|
484 |
int x191,
|
|
485 |
int x192,
|
|
486 |
int x193,
|
|
487 |
int x194,
|
|
488 |
int x195,
|
|
489 |
int x196,
|
|
490 |
int x197,
|
|
491 |
int x198,
|
|
492 |
int x199,
|
|
493 |
int x200,
|
|
494 |
int x201,
|
|
495 |
int x202,
|
|
496 |
int x203,
|
|
497 |
int x204,
|
|
498 |
int x205,
|
|
499 |
int x206,
|
|
500 |
int x207,
|
|
501 |
int x208,
|
|
502 |
int x209,
|
|
503 |
int x210,
|
|
504 |
int x211,
|
|
505 |
int x212,
|
|
506 |
int x213,
|
|
507 |
int x214,
|
|
508 |
int x215,
|
|
509 |
int x216,
|
|
510 |
int x217,
|
|
511 |
int x218,
|
|
512 |
int x219,
|
|
513 |
int x220,
|
|
514 |
int x221,
|
|
515 |
int x222,
|
|
516 |
int x223,
|
|
517 |
int x224,
|
|
518 |
int x225,
|
|
519 |
int x226,
|
|
520 |
int x227,
|
|
521 |
int x228,
|
|
522 |
int x229,
|
|
523 |
int x230,
|
|
524 |
int x231,
|
|
525 |
int x232,
|
|
526 |
int x233,
|
|
527 |
int x234,
|
|
528 |
int x235,
|
|
529 |
int x236,
|
|
530 |
int x237,
|
|
531 |
int x238,
|
|
532 |
int x239,
|
|
533 |
int x240,
|
|
534 |
int x241,
|
|
535 |
int x242,
|
|
536 |
int x243,
|
|
537 |
int x244,
|
|
538 |
int x245,
|
|
539 |
int x246,
|
|
540 |
int x247,
|
|
541 |
int x248,
|
|
542 |
int x249,
|
|
543 |
int x250,
|
|
544 |
int x251,
|
|
545 |
int x252,
|
|
546 |
int x253,
|
|
547 |
int x254,
|
|
548 |
int x255
|
|
549 |
) {}
|
|
550 |
}
|