mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
Merge
This commit is contained in:
commit
c6d81e192d
117 changed files with 1100 additions and 464 deletions
|
@ -322,9 +322,12 @@ address ExceptionCache::test_address(address addr) {
|
|||
|
||||
bool ExceptionCache::add_address_and_handler(address addr, address handler) {
|
||||
if (test_address(addr) == handler) return true;
|
||||
if (count() < cache_size) {
|
||||
set_pc_at(count(),addr);
|
||||
set_handler_at(count(), handler);
|
||||
|
||||
int index = count();
|
||||
if (index < cache_size) {
|
||||
set_pc_at(index, addr);
|
||||
set_handler_at(index, handler);
|
||||
OrderAccess::storestore();
|
||||
increment_count();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue