mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
8151414: os::pretouch_memory should take void* instead of char*
Change parameters and remove associated casts. Reviewed-by: pliden, stefank
This commit is contained in:
parent
00a657d109
commit
94c75d0f00
3 changed files with 4 additions and 4 deletions
|
@ -1600,8 +1600,8 @@ bool os::release_memory(char* addr, size_t bytes) {
|
|||
return res;
|
||||
}
|
||||
|
||||
void os::pretouch_memory(char* start, char* end) {
|
||||
for (volatile char *p = start; p < end; p += os::vm_page_size()) {
|
||||
void os::pretouch_memory(void* start, void* end) {
|
||||
for (volatile char *p = (char*)start; p < (char*)end; p += os::vm_page_size()) {
|
||||
*p = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue