--- a/src/hotspot/share/ci/ciBaseObject.cpp Tue Mar 12 15:42:32 2019 +0100
+++ b/src/hotspot/share/ci/ciBaseObject.cpp Thu Mar 14 09:08:17 2019 +0100
@@ -32,9 +32,8 @@
//
// Set the unique identity number of a ciBaseObject.
void ciBaseObject::set_ident(uint id) {
- assert((_ident >> FLAG_BITS) == 0, "must only initialize once");
- assert( id < ((uint)1 << (BitsPerInt-FLAG_BITS)), "id too big");
- _ident = _ident + (id << FLAG_BITS);
+ assert(_ident == 0, "must only initialize once");
+ _ident = id;
}
// ------------------------------------------------------------------
@@ -42,7 +41,6 @@
//
// Report the unique identity number of a ciBaseObject.
uint ciBaseObject::ident() {
- uint id = _ident >> FLAG_BITS;
- assert(id != 0, "must be initialized");
- return id;
+ assert(_ident != 0, "must be initialized");
+ return _ident;
}