I've solved this problem, thanks guys. I just had to increase the stack size to 2m and the heap size to 350m.
Type: Posts; User: Mathew.Williams
I've solved this problem, thanks guys. I just had to increase the stack size to 2m and the heap size to 350m.
When I run the following code on a dataset of 500000 items I get a StackOverflowError. I've increased the JVM's available heap space to 512mb however I still get the same problem, I was wondering if...
public void quickSort(int[] items, int left, int right){
System.out.println(count);
count++;
int pivot = (left + right) / 2;
int tmp;
int i = left, j = right;
while(items[i] <=...