t-sgx icon indicating copy to clipboard operation
t-sgx copied to clipboard

Problems of running merge sort

Open likai1993 opened this issue 7 years ago • 2 comments

Hi, there, Firstly thanks for your eminent contribution to t-sgx project. However, I just meet a problem in running merge sort based on your tsgx-test folder. The problem is that when the length of the input array was over 5000, the t-sxg process just hanged up. Then I used gdb to debug the process and found that the $pc just stopped at the instruction: "xbegin sb.entry.tsx".

likai1993 avatar Oct 27 '17 21:10 likai1993

Hi, Thanks for showing your interest in our project. This is a known issue of the current released version as we hard-coded enable the optimization (i.e., the code tend to put the entire loop in a single transaction). Although the new version is still under development, I'll try to provide a fix for this issue first.

johnmwshih avatar Oct 27 '17 21:10 johnmwshih

Hi, @johnmwshih What if we put the entire loop in a single transaction? why will it cause exceptios and stop at xbegin?

likai1993 avatar Oct 30 '17 21:10 likai1993