Array index

6 views
Skip to first unread message

mihai

unread,
Dec 8, 2009, 8:10:07 AM12/8/09
to Deuce-STM, gkor...@gmail.com
Hi,

I'm debugging my STM algorithm and I got an error that seems to be
caused by the skip list class:

Exception in thread "Thread-1"
java.lang.ArrayIndexOutOfBoundsException: 1
at org.deuce.transaction.ContextDelegator.onArrayReadAccess
(ContextDelegator.java:293)
at org.deuce.benchmark.intset.IntSetSkipList$Node.getForward
(IntSetSkipList.java:35)
at org.deuce.benchmark.intset.IntSetSkipList.contains
(IntSetSkipList.java:167)
at org.deuce.benchmark.intset.IntSetSkipList.contains
(IntSetSkipList.java)
at simpletest.LinkedListTest$SetTestThread.run(LinkedListTest.java:
70)
at java.lang.Thread.run(Thread.java:619)

Tell me what you think.

Mihai

Guy Korland

unread,
Dec 10, 2009, 10:08:24 AM12/10/09
to mihai, Deuce-STM
The error can happen only if the code has a real
ArrayIndexOutOfBoundsException meaning the user code tries to access
an array which it size is 0.
If this is not the case can you send a test case?

Guy
--
Regards,
Guy Korland
Reply all
Reply to author
Forward
0 new messages