| author | never |
| Wed Sep 03 14:57:00 2008 -0700 (14 months ago) | |
| changeset 314 | 3a26e9e4be71 |
| parent 313 | a10808f5a4b5 |
| child 316 | 5fa96a5a7e76 |
| child 319 | cdbee661c7da |
--- a/src/cpu/x86/vm/nativeInst_x86.hpp Tue Sep 02 08:30:41 2008 -0700+++ b/src/cpu/x86/vm/nativeInst_x86.hpp Wed Sep 03 14:57:00 2008 -0700@@ -391,6 +391,9 @@ class NativeJump: public NativeInstructivoid set_jump_destination(address dest) {intptr_t val = dest - next_instruction_address();+ if (dest == (address) -1) {+ val = -5; // jump to self+ }#ifdef AMD64assert((labs(val) & 0xFFFFFFFF00000000) == 0 || dest == (address)-1, "must be 32bit offset or -1");#endif // AMD64