equal
deleted
inserted
replaced
1164 cb->initialize(total_req, locs_req); |
1164 cb->initialize(total_req, locs_req); |
1165 |
1165 |
1166 // Have we run out of code space? |
1166 // Have we run out of code space? |
1167 if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) { |
1167 if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) { |
1168 C->record_failure("CodeCache is full"); |
1168 C->record_failure("CodeCache is full"); |
1169 CompileBroker::handle_full_code_cache(CodeBlobType::NonNMethod); |
|
1170 return NULL; |
1169 return NULL; |
1171 } |
1170 } |
1172 // Configure the code buffer. |
1171 // Configure the code buffer. |
1173 cb->initialize_consts_size(const_req); |
1172 cb->initialize_consts_size(const_req); |
1174 cb->initialize_stubs_size(stub_req); |
1173 cb->initialize_stubs_size(stub_req); |
1489 |
1488 |
1490 // Verify that there is sufficient space remaining |
1489 // Verify that there is sufficient space remaining |
1491 cb->insts()->maybe_expand_to_ensure_remaining(MAX_inst_size); |
1490 cb->insts()->maybe_expand_to_ensure_remaining(MAX_inst_size); |
1492 if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) { |
1491 if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) { |
1493 C->record_failure("CodeCache is full"); |
1492 C->record_failure("CodeCache is full"); |
1494 CompileBroker::handle_full_code_cache(CodeBlobType::NonNMethod); |
|
1495 return; |
1493 return; |
1496 } |
1494 } |
1497 |
1495 |
1498 // Save the offset for the listing |
1496 // Save the offset for the listing |
1499 #ifndef PRODUCT |
1497 #ifndef PRODUCT |
1646 } |
1644 } |
1647 |
1645 |
1648 // One last check for failed CodeBuffer::expand: |
1646 // One last check for failed CodeBuffer::expand: |
1649 if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) { |
1647 if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) { |
1650 C->record_failure("CodeCache is full"); |
1648 C->record_failure("CodeCache is full"); |
1651 CompileBroker::handle_full_code_cache(CodeBlobType::NonNMethod); |
|
1652 return; |
1649 return; |
1653 } |
1650 } |
1654 |
1651 |
1655 #ifndef PRODUCT |
1652 #ifndef PRODUCT |
1656 // Dump the assembly code, including basic-block numbers |
1653 // Dump the assembly code, including basic-block numbers |