comparison src/share/vm/classfile/javaClasses.cpp @ 16242:e9998e2be7f5

use oops_do to modify saved hsail state Contributed-by: Tom Deneau <tom.deneau@amd.com>
author Gilles Duboscq <duboscq@ssw.jku.at>
date Thu, 26 Jun 2014 18:25:35 +0200
parents 4ca6dc0799b6
children 8a05a498ab76
comparison
equal deleted inserted replaced
16241:c6ebc1997a55 16242:e9998e2be7f5
1530 set_backtrace(throwable(), bt.backtrace()); 1530 set_backtrace(throwable(), bt.backtrace());
1531 } 1531 }
1532 return; 1532 return;
1533 } 1533 }
1534 1534
1535 #ifdef GRAAL
1535 // Check for gpu exception to add as top frame 1536 // Check for gpu exception to add as top frame
1536 Method* gpu_method = thread->get_gpu_exception_method(); 1537 Method* gpu_method = thread->get_gpu_exception_method();
1537 if (gpu_method != NULL) { 1538 if (gpu_method != NULL) {
1538 jint gpu_bci = thread->get_gpu_exception_bci(); 1539 jint gpu_bci = thread->get_gpu_exception_bci();
1539 bt.push(gpu_method, gpu_bci, CHECK); 1540 bt.push(gpu_method, gpu_bci, CHECK);
1540 // Clear the gpu exception state, it is not used after here 1541 // Clear the gpu exception state, it is not used after here
1541 thread->set_gpu_exception_bci(0); 1542 thread->set_gpu_exception_bci(0);
1542 thread->set_gpu_exception_method(NULL); 1543 thread->set_gpu_exception_method(NULL);
1543 } 1544 }
1545 #endif
1544 1546
1545 // Instead of using vframe directly, this version of fill_in_stack_trace 1547 // Instead of using vframe directly, this version of fill_in_stack_trace
1546 // basically handles everything by hand. This significantly improved the 1548 // basically handles everything by hand. This significantly improved the
1547 // speed of this method call up to 28.5% on Solaris sparc. 27.1% on Windows. 1549 // speed of this method call up to 28.5% on Solaris sparc. 27.1% on Windows.
1548 // See bug 6333838 for more details. 1550 // See bug 6333838 for more details.