Skip to content

Commit

Permalink
8237198: ZGC: Share multi-mapping code in ZBackingFile
Browse files Browse the repository at this point in the history
Reviewed-by: stefank, eosterlund, smonteith
  • Loading branch information
pliden committed Jan 17, 2020
1 parent a4b3e78 commit c6dc330
Show file tree
Hide file tree
Showing 17 changed files with 331 additions and 1,029 deletions.
6 changes: 5 additions & 1 deletion src/hotspot/os/bsd/gc/z/zBackingFile_bsd.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -89,6 +89,10 @@ bool ZBackingFile::is_initialized() const {
return _initialized;
}

void ZBackingFile::warn_commit_limits(size_t max) const {
// Does nothing
}

size_t ZBackingFile::size() const {
return _size;
}
Expand Down
4 changes: 3 additions & 1 deletion src/hotspot/os/bsd/gc/z/zBackingFile_bsd.hpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -47,6 +47,8 @@ class ZBackingFile {

bool is_initialized() const;

void warn_commit_limits(size_t max) const;

size_t size() const;

size_t commit(size_t offset, size_t length);
Expand Down
219 changes: 0 additions & 219 deletions src/hotspot/os/bsd/gc/z/zPhysicalMemoryBacking_bsd.cpp

This file was deleted.

65 changes: 0 additions & 65 deletions src/hotspot/os/bsd/gc/z/zPhysicalMemoryBacking_bsd.hpp

This file was deleted.

0 comments on commit c6dc330

Please sign in to comment.