mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 19:57:48 +08:00
Stop gap solution for cython functions breaking in memory monitor (#7687)
This commit is contained in:
@@ -569,7 +569,12 @@ cdef void get_py_stack(c_string* stack_out) nogil:
|
||||
"""
|
||||
|
||||
with gil:
|
||||
frame = inspect.currentframe()
|
||||
try:
|
||||
frame = inspect.currentframe()
|
||||
except ValueError: # overhead of exception handling is about 20us
|
||||
stack_out[0] = "".encode("ascii")
|
||||
return
|
||||
|
||||
msg = ""
|
||||
while frame:
|
||||
filename = frame.f_code.co_filename
|
||||
|
||||
Reference in New Issue
Block a user