[rvm-core] a possible bug

View: New views
2 Messages — Rating Filter:   Alert me  

[rvm-core] a possible bug

by vondart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
method  private static Object cloneClass2(Object obj, RVMType type) throws OutOfMemoryError , in class org.jikesrvm.runtime.RuntimeEntrypoints, didn't consider float and double, is that a possible bug? I didn't test it, just a question.

DaFENG
Coder
Telecommunication && Network Industry
Pudong
Shanghai
China



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core

Re: [rvm-core] a possible bug

by Michael Bond :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The float and double cases are actually covered by the following checks in
that method:

if (size == BYTES_IN_INT) { /* handles floats */

if (size == BYTES_IN_LONG) { /* handles doubles */

Note that float and int have the same number of bytes (4), and double and
long have the same number of bytes (8).

cheers,
Mike


On Tue, 19 May 2009, Da Feng wrote:

> method  private static Object cloneClass2(Object obj, RVMType type) throws OutOfMemoryError , in class
> org.jikesrvm.runtime.RuntimeEntrypoints, didn't consider float and double, is that a possible bug? I didn't
> test it, just a question.
>
> DaFENG
> Coder
> Telecommunication && Network Industry
> Pudong
> Shanghai
> China
>
>
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core