review (S) for 6911204: generated adapters with large signatures	can	fill up the code cache
    Tom Rodriguez 
    Thomas.Rodriguez at Sun.COM
       
    Wed Jan 13 19:06:27 PST 2010
    
    
  
On Jan 13, 2010, at 6:06 PM, Vladimir Kozlov wrote:
> 
> src/share/vm/runtime/sharedRuntime.cpp
> 
> 1783 // A simple wrapper class around the calling convntion information
>                                                     ^
Fixed.
> 
> 1793   int value(int index) { <<< returns "int" but _fingerprint is array of intptr_t,
>                                  and there is no check (v1 == (int) v1). I know they fit "int"
>                                  but some compilers may complain about downcast without explicit cast.
You're right.  I fixed it.
> 
> I do not get next:
> 1806     _length = total_args_passed * sizeof(VMRegPair) / sizeof(int);
> should it be :
> 1806     _length = total_args_passed * 2;
> since you always stores 2 values per argument
I switched it to 2.  An earlier version did something different but 2 is the right value for this code.
> 
> 
> 1856     return st.as_string();;
Fixed.
>                               ^
> 
> 2039     if (UseNewCode2) { <<<<<<<<<<
> 2040       entry = NULL;
> 2041     }
Removed.
tom
> 
> Vladimir
> 
> Tom Rodriguez wrote:
>> http://cr.openjdk.java.net/~never/6911204
    
    
More information about the hotspot-compiler-dev
mailing list