Menu

#2 Unnessesary Memmory use for boolean InvokeInstruction

open
nobody
None
5
2006-12-21
2006-12-21
No

/**
* Computes a hash code with the object data.
*/
Index: gov/nasa/jpf/jvm/bytecode/InvokeInstruction.java
===================================================================
--- gov/nasa/jpf/jvm/bytecode/InvokeInstruction.java (revision 210)
+++ gov/nasa/jpf/jvm/bytecode/InvokeInstruction.java (working copy)
@@ -122,7 +122,7 @@
break;

case Types.T_BOOLEAN:
- args[i] = new Boolean(frame.peek(off) != 0);
+ args[i] = Boolean.valueOf(frame.peek(off) != 0);
off++;
break;
case Types.T_BYTE:

Discussion


Log in to post a comment.