mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
6670459: Fix Node::dump() performance
Dump full ideal graph takes forever. Reviewed-by: never, rasbold
This commit is contained in:
parent
277c3322f6
commit
37b9a97e08
2 changed files with 30 additions and 84 deletions
|
@ -1384,7 +1384,7 @@ public:
|
|||
_inode_top->indx = i;
|
||||
}
|
||||
uint size_max() const { return (uint)pointer_delta(_inode_max, _inodes, sizeof(INode)); } // Max size
|
||||
uint size() const { return (uint)pointer_delta(_inode_top, _inodes, sizeof(INode)) + 1; } // Current size
|
||||
uint size() const { return (uint)pointer_delta((_inode_top+1), _inodes, sizeof(INode)); } // Current size
|
||||
bool is_nonempty() const { return (_inode_top >= _inodes); }
|
||||
bool is_empty() const { return (_inode_top < _inodes); }
|
||||
void clear() { _inode_top = _inodes - 1; } // retain storage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue