mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +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
|
@ -220,7 +220,7 @@ class Generation: public CHeapObj {
|
|||
MemRegion prev_used_region() const { return _prev_used_region; }
|
||||
virtual void save_used_region() { _prev_used_region = used_region(); }
|
||||
|
||||
// Returns "TRUE" iff "p" points into an allocated object in the generation.
|
||||
// Returns "TRUE" iff "p" points into the committed areas in the generation.
|
||||
// For some kinds of generations, this may be an expensive operation.
|
||||
// To avoid performance problems stemming from its inadvertent use in
|
||||
// product jvm's, we restrict its use to assertion checking or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue