The GTest `os_linux.addr_to_function_valid` test trying to lookup a function symbol name from an address via `dll_address_to_function_name`. The test seems to be purposely written to not use a VM test. However `dll_address_to_function_name` requires a Mutex if called from a not `VMError` context.
If the no VM property was not important we can change this to a VM test. Alternatively we create a way to mock a `VMError` if we want to make sure that `dll_address_to_function_name` works even if we were to crash very early on in the VM startup.
A naive approach would be to just set `VMError::_first_error_tid` during this test, but this would wreck havoc if we were to actually crash inside.
If the no VM property was not important we can change this to a VM test. Alternatively we create a way to mock a `VMError` if we want to make sure that `dll_address_to_function_name` works even if we were to crash very early on in the VM startup.
A naive approach would be to just set `VMError::_first_error_tid` during this test, but this would wreck havoc if we were to actually crash inside.
- relates to
-
JDK-8372241 Add GTestCheckers
-
- Open
-