8227766: CheckUnhandledOops is broken in MemAllocator

Save oop created in handle more eagerly, so CheckUnhandledOops doesn't bash it.

Reviewed-by: lfoltan, eosterlund
This commit is contained in:
Coleen Phillimore 2019-07-18 07:06:33 -04:00
parent d97475df72
commit d35c1540e6
6 changed files with 65 additions and 19 deletions

View file

@ -342,7 +342,7 @@ oop StringTable::intern(Handle string_or_null_h, const jchar* name, int len, TRA
if (found_string != NULL) {
return found_string;
}
return do_intern(string_or_null_h, name, len, hash, CHECK_NULL);
return do_intern(string_or_null_h, name, len, hash, THREAD);
}
oop StringTable::do_intern(Handle string_or_null_h, const jchar* name,