1.1 --- a/src/cpu/zero/vm/interpreterRT_zero.cpp Wed Apr 14 15:30:13 2010 -0700 1.2 +++ b/src/cpu/zero/vm/interpreterRT_zero.cpp Thu Apr 15 02:40:12 2010 -0700 1.3 @@ -1,6 +1,6 @@ 1.4 /* 1.5 * Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved. 1.6 - * Copyright 2007, 2008 Red Hat, Inc. 1.7 + * Copyright 2007, 2008, 2010 Red Hat, Inc. 1.8 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.9 * 1.10 * This code is free software; you can redistribute it and/or modify it 1.11 @@ -140,9 +140,8 @@ 1.12 int required_words = 1.13 (align_size_up(sizeof(ffi_cif), wordSize) >> LogBytesPerWord) + 1.14 (method->is_static() ? 2 : 1) + method->size_of_parameters() + 1; 1.15 - if (required_words > stack->available_words()) { 1.16 - Unimplemented(); 1.17 - } 1.18 + 1.19 + stack->overflow_check(required_words, CHECK_NULL); 1.20 1.21 intptr_t *buf = (intptr_t *) stack->alloc(required_words * wordSize); 1.22 SlowSignatureHandlerGenerator sshg(methodHandle(thread, method), buf);