Skip to content

Commit

Permalink
8302864: Parallel: Remove PSVirtualSpace::pointer_delta
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl, kbarrett
  • Loading branch information
albertnetymk committed Feb 21, 2023
1 parent 46f2525 commit dcd773a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/hotspot/share/gc/parallel/psVirtualspace.hpp
Expand Up @@ -52,9 +52,6 @@ class PSVirtualSpace : public CHeapObj<mtGC> {
// os::commit_memory() or os::uncommit_memory().
bool _special;

// Convenience wrapper.
inline static size_t pointer_delta(const char* left, const char* right);

public:
PSVirtualSpace(ReservedSpace rs, size_t alignment);

Expand Down Expand Up @@ -124,17 +121,13 @@ class PSVirtualSpace : public CHeapObj<mtGC> {
//
// PSVirtualSpace inlines.
//
inline size_t
PSVirtualSpace::pointer_delta(const char* left, const char* right) {
return ::pointer_delta((void *)left, (void*)right, sizeof(char));
}

inline size_t PSVirtualSpace::committed_size() const {
return pointer_delta(committed_high_addr(), committed_low_addr());
return pointer_delta(committed_high_addr(), committed_low_addr(), sizeof(char));
}

inline size_t PSVirtualSpace::reserved_size() const {
return pointer_delta(reserved_high_addr(), reserved_low_addr());
return pointer_delta(reserved_high_addr(), reserved_low_addr(), sizeof(char));
}

inline size_t PSVirtualSpace::uncommitted_size() const {
Expand Down

1 comment on commit dcd773a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.