Supporting Nested STM

46 views
Skip to first unread message

Yuheng Long

unread,
Mar 22, 2013, 12:43:48 PM3/22/13
to deuce-stm-...@googlegroups.com
Hi,
     Does Deuce support nested transaction? It does
not seem like it support nested transaction. I have a
program like the following and it gives me error

Class C extends Thread {
     public static int i = 0;

     public void run() {
            atomic {
               i--;
               C next = new c();
               next.start();
               try {
                  next.join();
               } catch(Exception e){}
            }
      }
 }

Exception in thread "Thread-0" java.lang.NoSuchMethodError:
C.start(Lorg/deuce/transaction/Context;)V

Would you please advise. Sorry if I miss anything obvious.
Or is there any way I can get around it?


Thank you very much,
Sincerely,
Yuheng

Guy Korland

unread,
Mar 22, 2013, 2:25:48 PM3/22/13
to deuce-stm-...@googlegroups.com
What did you try to achieve? It seems like you want nested transactions between different threads.
--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deuce-stm-develo...@googlegroups.com.
To post to this group, send email to deuce-stm-...@googlegroups.com.
Visit this group at http://groups.google.com/group/deuce-stm-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Regards,
Guy Korland

Yuheng Long

unread,
Mar 22, 2013, 3:19:24 PM3/22/13
to deuce-stm-...@googlegroups.com


What did you try to achieve? It seems like you want nested transactions between different threads.

I am trying to start a thread in a transaction. It seems that
the start method is not created?

Guy Korland

unread,
Mar 23, 2013, 1:51:30 AM3/23/13
to deuce-stm-...@googlegroups.com
The start method is a method of Thread, which is no instrumented by default.
To instrument it you should instrument offline rt.jar (see documentation) 

--
Reply all
Reply to author
Forward
0 new messages