users@glassfish.java.net

A follow up

From: <glassfish_at_javadesktop.org>
Date: Tue, 23 Sep 2008 09:19:56 PDT

I added some more debug code and basically inlined SEQ_PLUS with code that looks like:

[i] if (__LOGPROTO.isLoggable(Level.FINER)) {
                                __LOGPROTO.finer("xxx receiveMessage inmsg.seq = " + inmsg.getSequenceNumber() + " __rcvcur = " + __rcvcur + " SEQ_PLUS = " + SEQ_PLUS(__rcvcur, 1) + "this = " + this);
                                long x = __rcvcur;
                                long y = 1;
                                long z = (x + y) % 0x100000000L;
                                __LOGPROTO.finer("xxx x is " + x + " y is " + y + " z is " + z);
                            }
[/i]
Periodically when I startup, I am seeing the following log output from the last line:

[i][#|2008-09-23T12:15:38.505-0400|FINER|sun-appserver9.1|com.canoga.lib.io.rdp.RDP
Connection.proto|_ThreadID=28;_ThreadName=RDPConnectionEngineUDP;ClassName=com.c
anoga.java.io.rdp.RDPConnection;MethodName=receiveMessage;_RequestID=77189b23-d5
ff-49c3-8194-662f468bbe66;|xxx x is 16838 y is 4294967296 z is 16838|#]
[/i]

How in the heck is "y" becoming "4294967296"?
[Message sent by forum member 'bbergquist' (bbergquist)]

http://forums.java.net/jive/thread.jspa?messageID=301038