mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8131734: assert(!is_null(v)) failed: narrow klass value can never be zero with -Xshared:auto
Handle shared string mapping failures. Co-authored-by: Tom Benson <tom.benson@oracle.com> Reviewed-by: tschatzl, kbarrett, ddmitriev, hseigel
This commit is contained in:
parent
24ddd9ba7c
commit
9ee2b211f9
10 changed files with 190 additions and 22 deletions
|
@ -310,9 +310,9 @@ void G1MarkSweep::enable_archive_object_check() {
|
|||
HeapRegion::GrainBytes);
|
||||
}
|
||||
|
||||
void G1MarkSweep::mark_range_archive(MemRegion range) {
|
||||
void G1MarkSweep::set_range_archive(MemRegion range, bool is_archive) {
|
||||
assert(_archive_check_enabled, "archive range check not enabled");
|
||||
_archive_region_map.set_by_address(range, true);
|
||||
_archive_region_map.set_by_address(range, is_archive);
|
||||
}
|
||||
|
||||
bool G1MarkSweep::in_archive_range(oop object) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue