diff --git a/src/hotspot/share/prims/jvmtiAgentList.cpp b/src/hotspot/share/prims/jvmtiAgentList.cpp index cb8e5beb11d..22d74e930cf 100644 --- a/src/hotspot/share/prims/jvmtiAgentList.cpp +++ b/src/hotspot/share/prims/jvmtiAgentList.cpp @@ -245,7 +245,6 @@ JvmtiAgent* JvmtiAgentList::lookup(JvmtiEnv* env, void* f_ptr) { return nullptr; } assert(buffer[0] != '\0', "invariant"); - assert(offset >= 0, "invariant"); const void* const os_module_address = reinterpret_cast
(f_ptr) - offset; JvmtiAgentList::Iterator it = JvmtiAgentList::agents();