--- old/src/hotspot/share/services/threadService.cpp 2020-07-23 11:09:44.583221646 +0200 +++ new/src/hotspot/share/services/threadService.cpp 2020-07-23 11:09:44.467218107 +0200 @@ -567,6 +567,7 @@ _locked_monitors = NULL; if (with_lock_info) { ResourceMark rm; + HandleMark hm; GrowableArray* list = jvf->locked_monitors(); int length = list->length(); if (length > 0) {