mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8004845: Catch incorrect usage of new and delete during compile time for value objects and stack objects
Makes the "new" and "delete" operator of _ValueObj and StackObj private Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
a3355065be
commit
7fc460bae3
5 changed files with 8 additions and 7 deletions
|
@ -1839,15 +1839,16 @@ uint Node::match_edge(uint idx) const {
|
|||
return idx; // True for other than index 0 (control)
|
||||
}
|
||||
|
||||
static RegMask _not_used_at_all;
|
||||
// Register classes are defined for specific machines
|
||||
const RegMask &Node::out_RegMask() const {
|
||||
ShouldNotCallThis();
|
||||
return *(new RegMask());
|
||||
return _not_used_at_all;
|
||||
}
|
||||
|
||||
const RegMask &Node::in_RegMask(uint) const {
|
||||
ShouldNotCallThis();
|
||||
return *(new RegMask());
|
||||
return _not_used_at_all;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue