ArrayList instrumentation

52 views
Skip to first unread message

alegorla

unread,
Dec 6, 2011, 6:26:05 AM12/6/11
to Deuce-STM developers
We are trying to use Deuce on few simple classes which contain
ArrayLists as fields, but we noticed that the library does not
rollback the ArrayLists. Here is what we did:

-- We instrumented the rt.jar offline (such that we could instrument
the ArrayList class as well) without excluding anything, and we
appended the new rt.jar to the bootclassloader. However we ran into
several runtime exceptions when we tried to run the application with
the instrumented rt.jar.

-- Since the exception was caused by the loading of the instrumented
Hashtable class (same problem as here:
http://groups.google.com/group/deuce-stm-developers/browse_thread/thread/e40dd18ffbd2695c?pli=1),
we excluded Hashtable from the instrumentation. This way we are not
running into any runtime exception, however the rollback on the
Arraylists still does not work.

We are sure that the Arraylist class is correctly instrumented (we
checked the generated bytecode), so we have no clue of why this is not
working as expected. Can you tell us what we are doing wrong?

Thank you :)

Guy Korland

unread,
Dec 6, 2011, 10:41:15 AM12/6/11
to deuce-stm-...@googlegroups.com
Can you send an example?

Regards,
Guy Korland



--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To post to this group, send email to deuce-stm-...@googlegroups.com.
To unsubscribe from this group, send email to deuce-stm-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/deuce-stm-developers?hl=en.


Saxo

unread,
Oct 29, 2012, 4:46:41 AM10/29/12
to deuce-stm-...@googlegroups.com
Use javolution's FastList instead of ArrayList. FastList is a standalone class and you don't have to instrument the whole rt.jar. I replaced for a similar experiment HashMap with FastMap and my problems were gone. See this post

/Oliver.
To unsubscribe from this group, send email to deuce-stm-developers+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages