mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
7121373: Clean up CollectedHeap::is_in
Fixed G1CollectedHeap::is_in, added tests, cleaned up comments and made Space::is_in pure virtual. Reviewed-by: brutisso, tonyp, jcoomes
This commit is contained in:
parent
714e978aac
commit
a3943834e1
15 changed files with 54 additions and 32 deletions
|
@ -187,7 +187,7 @@ class Space: public CHeapObj {
|
|||
// expensive operation. To prevent performance problems
|
||||
// on account of its inadvertent use in product jvm's,
|
||||
// we restrict its use to assertion checks only.
|
||||
virtual bool is_in(const void* p) const;
|
||||
virtual bool is_in(const void* p) const = 0;
|
||||
|
||||
// Returns true iff the given reserved memory of the space contains the
|
||||
// given address.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue