Skip to content

Commit

Permalink
init change
Browse files Browse the repository at this point in the history
  • Loading branch information
offamitkumar committed Oct 24, 2024
1 parent f7a61fc commit 276282f
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/hotspot/share/opto/callnode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1193,19 +1193,22 @@ class LockNode : public AbstractLockNode {
public:

static const TypeFunc *lock_type() {
// create input type (domain)
const Type **fields = TypeTuple::fields(3);
fields[TypeFunc::Parms+0] = TypeInstPtr::NOTNULL; // Object to be Locked
fields[TypeFunc::Parms+1] = TypeRawPtr::BOTTOM; // Address of stack location for lock
fields[TypeFunc::Parms+2] = TypeInt::BOOL; // FastLock
const TypeTuple *domain = TypeTuple::make(TypeFunc::Parms+3,fields);

// create result type (range)
fields = TypeTuple::fields(0);

const TypeTuple *range = TypeTuple::make(TypeFunc::Parms+0,fields);

return TypeFunc::make(domain,range);
static const TypeFunc *tf = []() -> const TypeFunc* {
// create input type (domain)
const Type **fields = TypeTuple::fields(3);
fields[TypeFunc::Parms + 0] = TypeInstPtr::NOTNULL; // Object to be Locked
fields[TypeFunc::Parms + 1] = TypeRawPtr::BOTTOM; // Address of stack location for lock
fields[TypeFunc::Parms + 2] = TypeInt::BOOL; // FastLock
const TypeTuple *domain = TypeTuple::make(TypeFunc::Parms + 3, fields);

// create result type (range)
fields = TypeTuple::fields(0);

const TypeTuple *range = TypeTuple::make(TypeFunc::Parms + 0, fields);

return TypeFunc::make(domain, range);
}();
return tf;
}

virtual int Opcode() const;
Expand Down

0 comments on commit 276282f

Please sign in to comment.