8280496: Remove unused G1PageBasedVirtualSpace::pretouch_internal
Reviewed-by: tschatzl, sjohanss, mli
This commit is contained in:
parent
2b13341500
commit
4b329addf1
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -178,13 +178,6 @@ char* G1PageBasedVirtualSpace::bounded_end_addr(size_t end_page) const {
|
|||||||
return MIN2(_high_boundary, page_start(end_page));
|
return MIN2(_high_boundary, page_start(end_page));
|
||||||
}
|
}
|
||||||
|
|
||||||
void G1PageBasedVirtualSpace::pretouch_internal(size_t start_page, size_t end_page) {
|
|
||||||
guarantee(start_page < end_page,
|
|
||||||
"Given start page " SIZE_FORMAT " is larger or equal to end page " SIZE_FORMAT, start_page, end_page);
|
|
||||||
|
|
||||||
os::pretouch_memory(page_start(start_page), bounded_end_addr(end_page), _page_size);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool G1PageBasedVirtualSpace::commit(size_t start_page, size_t size_in_pages) {
|
bool G1PageBasedVirtualSpace::commit(size_t start_page, size_t size_in_pages) {
|
||||||
// We need to make sure to commit all pages covered by the given area.
|
// We need to make sure to commit all pages covered by the given area.
|
||||||
guarantee(is_area_uncommitted(start_page, size_in_pages),
|
guarantee(is_area_uncommitted(start_page, size_in_pages),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -87,9 +87,6 @@ class G1PageBasedVirtualSpace {
|
|||||||
// Uncommit the given memory range.
|
// Uncommit the given memory range.
|
||||||
void uncommit_internal(size_t start_page, size_t end_page);
|
void uncommit_internal(size_t start_page, size_t end_page);
|
||||||
|
|
||||||
// Pretouch the given memory range.
|
|
||||||
void pretouch_internal(size_t start_page, size_t end_page);
|
|
||||||
|
|
||||||
// Returns the index of the page which contains the given address.
|
// Returns the index of the page which contains the given address.
|
||||||
size_t addr_to_page_index(char* addr) const;
|
size_t addr_to_page_index(char* addr) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user